$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 #include -#if defined(__CYGWIN32__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun) +#if defined(__CYGWIN32__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__sun) || defined(__OpenBSD__) #include #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) {