19 lines
564 B
Text
19 lines
564 B
Text
$NetBSD: patch-ah,v 1.1.1.1 2003/07/06 19:52:58 rxg Exp $
|
|
|
|
--- lib/http/src/Http.cpp.orig Mon Jul 1 20:26:25 2002
|
|
+++ lib/http/src/Http.cpp
|
|
@@ -42,11 +42,12 @@
|
|
#include <unistd.h>
|
|
#endif
|
|
|
|
-#if defined(unix) || defined(__BEOS__) || defined(_BSD_SOURCE)
|
|
+#if defined(unix) || defined(__BEOS__) || defined(_BSD_SOURCE) || \
|
|
+ defined(__NetBSD__)
|
|
#define SOCKET int
|
|
#endif
|
|
|
|
-#if defined(unix) || defined(_BSD_SOURCE)
|
|
+#if defined(unix) || defined(_BSD_SOURCE) || defined(__NetBSD__)
|
|
#include <arpa/inet.h>
|
|
#define closesocket(x) close(x)
|
|
#ifndef O_BINARY
|