On Thu, 02 Oct 2008, Maurilio Longo wrote:

Hi Maurilio,

> make[1]: Entering directory `/repository/harbour-svn/source/rtl/os2/gcc'
> gcc -I. -I../../../../include -Wall -W -O3 -DTCPV40HDRS 
> -DHB_FM_STATISTICS_OFF -
> c ../../filesys.c -ofilesys.o
> ../../filesys.c: In function `convert_open_flags':
> ../../filesys.c:419: error: `S_IREAD' undeclared (first use in this function)
> ../../filesys.c:419: error: (Each undeclared identifier is reported only once
> ../../filesys.c:419: error: for each function it appears in.)
> ../../filesys.c:420: error: `S_IWRITE' undeclared (first use in this function)
> ../../filesys.c:421: error: `S_IEXEC' undeclared (first use in this function)
> make[1]: *** [filesys.o] Error 1
> make[1]: Leaving directory `/repository/harbour-svn/source/rtl/os2/gcc'
> make: *** [descend] Error 2

The only one modification in filesys.c which can interact with above
is:
   #if !defined( _XOPEN_SOURCE )
   #  define _XOPEN_SOURCE 500
   #endif
at the beginning of this file.
Please try to comment it and check if it helps.
If not then it has to be sth local to your environment.
If yes then we will have to find some workaround for OS2 builds.
This define is necessary for pread[64]()/pwrite[64]() functions
used in *nixes.
BTW I was looking at sth similar in OS2 API in the internet but
I was not able to find anything. Probably for this platform we
cannot enable file handle sharing in aliased work areas.

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to