F_OK not defined with MacOSX builds
-----------------------------------

                 Key: AXIS2C-1567
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1567
             Project: Axis2-C
          Issue Type: Bug
          Components: core/engine
    Affects Versions: Current (Nightly)
         Environment: MacOSX Lion
            Reporter: Stefan Radomski


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to