O_SYNC problem

Hello,

Using today's snapshot on a FreeBSD-3.0-RELEASE:

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include
-DW3C_ICONS=\"/usr/local/libwww/share/w3c-libwww\" -g -O2
-Wp,-MD,.deps/HTMemLog.pp -c  -fPIC -DPIC HTMemLog.c -o .libs/HTMemLog.lo
HTMemLog.c: In function `HTMemLog_open':
HTMemLog.c:55: `O_SYNC' undeclared (first use this function)
HTMemLog.c:55: (Each undeclared identifier is reported only once
HTMemLog.c:55: for each function it appears in.)
gmake[4]: *** [HTMemLog.lo] Error 1

A grep -l O_SYNC under /usr/include shows that FreeBSD does not have it. 

CAhecking with the port for libwww-5.1m1 for FreeBSD I see that the
corresponding snippet is:

#ifdef WWW_MSWINDOWS
#define OPEN_FLAGS      O_WRONLY|O_CREAT|O_TRUNC
#else /* WWW_MSWINDOWS */
#define OPEN_FLAGS      O_WRONLY|O_CREAT|O_TRUNC
#endif /* !WWW_MSWINDOWS */

Removing O_SYNC makes compile OK for fbsd-3.0.  I think you must commit this...

--adamo

Received on Tuesday, 2 February 1999 08:33:08 UTC