Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
MacOSX Lion
Description
When building the current SVN trunk on a Mac, there are undefined F_OK and R_OK macros all over the place. These get defined in unistd.h and simply adding #include <unistd.h> to the affected files will compile them just fine on a Mac. Files missing the F_OK macro definitions are:
arch_reader.c
dep_engine.c
conf_init.c
http_server_main.c
I added the following lines to each of these files includes:
#ifdef _GNUC_
#include <unistd.h>
#endif
But I am sure that somewhere in the platform sensing code there is a place where this would make more sense.