You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by David Reid <ab...@dial.pipex.com> on 1999/09/04 10:57:30 UTC

PATCH : fix BeOS socket problems

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