httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Reid" <ab...@dial.pipex.com>
Subject PATCH : fix BeOS socket problems
Date Sat, 04 Sep 1999 08:57:30 GMT
This is a small patch that removes a define that has caused me much grief
recently.  BeOS has different calls for sockets and fd's, so closesocket is
a function used to close sockets, close is used to close fd's.  Imagine the
chaos caused by this small line of code!!!

david

diff -ru apache-2.0/src/include/ap_config.h
apache-2.0-work/src/include/ap_config.h
--- apache-2.0/src/include/ap_config.h Tue Aug 31 08:20:33 1999
+++ apache-2.0-work/src/include/ap_config.h Fri Sep  3 12:27:22 1999
@@ -1068,7 +1068,9 @@
 #include <pwd.h>
 #include <grp.h>
 #include <fcntl.h>
+#ifndef BEOS /* this really screws up BeOS R4.5 !! */
 #define closesocket(s) close(s)
+#endif
 #ifndef O_BINARY
 #define O_BINARY (0)
 #endif


Mime
View raw message