Michael Clark wrote:
William A. Rowe, Jr. wrote:
I'd go for a subdir option (xattrs/solaris.c, xattrs/freebsd.c, etc)
where the parent apr_xattrs.c in the unix directory just sucks in
the correct implementation by ifdef tests...

I went for this approach (as it was Davi's initial suggestion for this directory structure also).

It works. Only (minor) issue is the build-outputs.mk sources dependencies for the files in the file_io/unix/xattr subdirectory don't get generated.

I'm confused, if file_io/unix/apr_xattr.c does

#ifdef SOLARIS
#include "xattr/solaris.c"
#endif

for example, how didn't it pick up the dependencies?  Are the defines
broken at that phase?

Reply via email to