openbsd-ports/x11/nx/nxcomp/patches/patch-Socket_cpp
2011-03-02 08:48:16 +00:00

31 lines
898 B
Plaintext

$OpenBSD: patch-Socket_cpp,v 1.2 2011/03/02 08:48:16 jasper Exp $
--- Socket.cpp.orig Tue Jan 12 16:32:41 2010
+++ Socket.cpp Wed Feb 23 12:36:43 2011
@@ -18,7 +18,7 @@
#include <sys/types.h>
#include <sys/utsname.h>
-#if defined(__CYGWIN32__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun)
+#if defined(__CYGWIN32__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun) || defined(__OpenBSD__)
#include <netinet/in_systm.h>
#endif
@@ -39,7 +39,7 @@
// System specific defines.
//
-#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun) || defined(__OpenBSD__)
#define SOL_IP IPPROTO_IP
#endif
@@ -371,7 +371,7 @@ int SetNoDelay(int fd, int value)
#endif
- #if defined(__sun)
+ #if defined(__sun) || defined(__OpenBSD__)
if (EGET() == ENOPROTOOPT)
{