openbsd-ports/games/bzflag/patches/patch-include_network_h
2003-02-03 07:25:13 +00:00

22 lines
763 B
Plaintext

$OpenBSD: patch-include_network_h,v 1.2 2003/02/03 07:25:13 pvalchev Exp $
--- include/network.h.orig Mon Jun 3 23:40:27 2002
+++ include/network.h Mon Feb 3 00:22:24 2003
@@ -41,7 +41,7 @@
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <netdb.h>
-#if defined(_old_linux_) || (!defined(__linux__) && !defined(sun) && !defined(__FreeBSD__) && !defined(macintosh))
+#if defined(_old_linux_) || (!defined(__linux__) && !defined(sun) && !defined(__FreeBSD__) && !defined(macintosh)) && !defined(__OpenBSD__)
#include <bstring.h>
#endif
@@ -67,7 +67,7 @@
#define SSOType void*
#endif
-#if defined(__FreeBSD__) && !defined(_MACOSX_)
+#if (defined(__FreeBSD__) && !defined(_MACOSX_)) || defined(__OpenBSD__)
#define AddrLen socklen_t
#endif