Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 11362 invoked by uid 6000); 4 Sep 1999 08:58:41 -0000 Received: (qmail 11348 invoked from network); 4 Sep 1999 08:58:40 -0000 Received: from server1.jetnet.co.uk (194.73.252.30) by taz.hyperreal.org with SMTP; 4 Sep 1999 08:58:40 -0000 Received: from godzilla (godzilla.jetnet.co.uk [192.168.26.10]) by server1.jetnet.co.uk (8.9.3/8.9.3) with SMTP id JAA10644 for ; Sat, 4 Sep 1999 09:52:16 +0100 (BST) Message-ID: <008a01bef6b3$89aa70a0$0a1aa8c0@jetnet.co.uk> From: "David Reid" To: Subject: PATCH : fix BeOS socket problems Date: Sat, 4 Sep 1999 09:57:30 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org 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 #include #include +#ifndef BEOS /* this really screws up BeOS R4.5 !! */ #define closesocket(s) close(s) +#endif #ifndef O_BINARY #define O_BINARY (0) #endif