FreeBSD patch for libwww

Hello libwww'ers,

In the Amaya list, we received some patches for compiling Amaya under
FreeBSD. One of those patches concerns libwww:

======================
Second is a small patch to the libwww sources.  If you hear from users
of any other O_SYNC deprived OSen, it might be more efficient to just
say #ifndef O_SYNC.

--- libwww/Library/src/HTMemLog.c.orig	Wed Dec 16 11:55:44 1998
+++ libwww/Library/src/HTMemLog.c	Tue Jan  5 20:13:09 1999
@@ -15,7 +15,7 @@
 #include "HTMemLog.h"
 #include "HTTimer.h"
 
-#ifdef WWW_MSWINDOWS
+#if defined(WWW_MSWINDOWS) || defined (__FreeBSD__)
 #define OPEN_FLAGS	O_WRONLY|O_CREAT|O_TRUNC
 #else /* WWW_MSWINDOWS */
 #define OPEN_FLAGS	O_WRONLY|O_CREAT|O_TRUNC|O_SYNC

-- 

=====================

Has anyone else had this problem before? 
Does anyone object if we add this modif directly to the CVS base?

Thanks,

-Jose

Received on Thursday, 7 January 1999 13:18:17 UTC