summaryrefslogtreecommitdiff
path: root/net/Sockets/files/patch-socket_include.h
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2005-01-16 05:04:44 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2005-01-16 05:04:44 +0000
commit758b6a8fe39c2ca45ab9d7e33bf98ac9f5979113 (patch)
tree76084517eebd0d15621db1b4840a05ef58fcb790 /net/Sockets/files/patch-socket_include.h
parentUpdate to 1.3.19. See http://galeon.sourceforge.net/Main/GaleonRelease1319 (diff)
New port Sockets version 1.7.1: A C++ wrapper for BSD-style sockets
Notes
Notes: svn path=/head/; revision=126544
Diffstat (limited to 'net/Sockets/files/patch-socket_include.h')
-rw-r--r--net/Sockets/files/patch-socket_include.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/net/Sockets/files/patch-socket_include.h b/net/Sockets/files/patch-socket_include.h
new file mode 100644
index 000000000000..87aa06ecb7cc
--- /dev/null
+++ b/net/Sockets/files/patch-socket_include.h
@@ -0,0 +1,34 @@
+--- socket_include.h.orig Sat Jan 15 14:48:57 2005
++++ socket_include.h Sat Jan 15 22:31:09 2005
+@@ -1,10 +1,31 @@
+ #ifndef _SOCKET_INCLUDE_H
+ #define _SOCKET_INCLUDE_H
+
++#if (defined(__unix__) || defined(unix)) && !defined(USG)
++#include <sys/param.h>
++#endif
++
+ #ifdef SOLARIS
+ // ----------------------------------------
+ // Solaris
+ typedef unsigned short port_t;
++
++#elif defined __FreeBSD__
++// ----------------------------------------
++// FreeBSD
++# if __FreeBSD_version >= 400014
++# define s6_addr16 __u6_addr.__u6_addr16
++# if !defined(MSG_NOSIGNAL)
++# define MSG_NOSIGNAL 0
++# endif
++# include <netinet/in.h>
++typedef in_addr_t ipaddr_t;
++typedef in_port_t port_t;
++# define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP
++# define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP
++# else
++# error FreeBSD versions prior to 400014 does not support ipv6
++# endif
+
+ #elif defined MACOSX
+ // ----------------------------------------