Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-1567

F_OK not defined with MacOSX builds

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • core/engine
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sradomski Stefan Radomski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified