summaryrefslogtreecommitdiff
path: root/net/Sockets/files
diff options
context:
space:
mode:
Diffstat (limited to 'net/Sockets/files')
-rw-r--r--net/Sockets/files/patch-ListenSocket.h10
-rw-r--r--net/Sockets/files/patch-Makefile18
-rw-r--r--net/Sockets/files/patch-MinderHandler.cpp22
-rw-r--r--net/Sockets/files/patch-Sockets-config.cpp23
-rw-r--r--net/Sockets/files/patch-Uid.cpp36
-rw-r--r--net/Sockets/files/patch-socket_include.h34
6 files changed, 143 insertions, 0 deletions
diff --git a/net/Sockets/files/patch-ListenSocket.h b/net/Sockets/files/patch-ListenSocket.h
new file mode 100644
index 000000000000..e0468c1f10de
--- /dev/null
+++ b/net/Sockets/files/patch-ListenSocket.h
@@ -0,0 +1,10 @@
+--- ListenSocket.h.orig Sat Jan 15 23:40:23 2005
++++ ListenSocket.h Sat Jan 15 23:41:10 2005
+@@ -31,6 +31,7 @@
+
+ #include "Socket.h"
+
++#include <StdLog.h>
+
+ template <class X>
+ class ListenSocket : public Socket
diff --git a/net/Sockets/files/patch-Makefile b/net/Sockets/files/patch-Makefile
new file mode 100644
index 000000000000..e3f8911db7a0
--- /dev/null
+++ b/net/Sockets/files/patch-Makefile
@@ -0,0 +1,18 @@
+--- Makefile.orig Sat Jan 15 23:06:28 2005
++++ Makefile Sat Jan 15 23:07:15 2005
+@@ -59,11 +59,11 @@
+ ranlib $@
+
+ install: all
+- cp libSockets.a $(PREFIX)/lib
+- cp libSocketsEx.a $(PREFIX)/lib
++ @${BSD_INSTALL_DATA} libSockets.a $(PREFIX)/lib
++ @${BSD_INSTALL_DATA} libSocketsEx.a $(PREFIX)/lib
+ mkdir -p $(PREFIX)/include/Sockets
+- cp -a *.h $(PREFIX)/include/Sockets
+- install Sockets-config $(PREFIX)/bin
++ @${BSD_INSTALL_DATA} *.h $(PREFIX)/include/Sockets
++ @${BSD_INSTALL_PROGRAM} Sockets-config $(PREFIX)/bin
+
+ clean:
+ rm -f *.o *~ slask *.d $(PROGS) *.a
diff --git a/net/Sockets/files/patch-MinderHandler.cpp b/net/Sockets/files/patch-MinderHandler.cpp
new file mode 100644
index 000000000000..ec527d254b23
--- /dev/null
+++ b/net/Sockets/files/patch-MinderHandler.cpp
@@ -0,0 +1,22 @@
+--- MinderHandler.cpp.orig Sun Jan 16 02:22:51 2005
++++ MinderHandler.cpp Sun Jan 16 02:26:52 2005
+@@ -20,6 +20,10 @@
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
++#if (defined(__unix__) || defined(unix)) && !defined(USG)
++#include <sys/param.h>
++#endif
++
+ #ifdef _WIN32
+ #pragma warning(disable:4786)
+ #endif
+@@ -428,6 +432,8 @@
+ msg += ":" + tmp;
+ #ifdef _WIN32
+ msg += ":Win32";
++#elif defined __FreeBSD__
++ msg += ":FreeBSD";
+ #else
+ msg += ":Linux";
+ #endif
diff --git a/net/Sockets/files/patch-Sockets-config.cpp b/net/Sockets/files/patch-Sockets-config.cpp
new file mode 100644
index 000000000000..c53e3270e418
--- /dev/null
+++ b/net/Sockets/files/patch-Sockets-config.cpp
@@ -0,0 +1,23 @@
+--- Sockets-config.cpp.orig Sun Jan 16 02:23:14 2005
++++ Sockets-config.cpp Sun Jan 16 02:26:07 2005
+@@ -3,6 +3,10 @@
+ CFLAGS = -Wall -g -O2 $(INCLUDE) -MD -D_VERSION='"$(VERSION)"'
+ # manual autoconf ....
+
++#if (defined(__unix__) || defined(unix)) && !defined(USG)
++#include <sys/param.h>
++#endif
++
+ # uncomment if your operating system is linux, mac os x, or solaris
+ #CFLAGS += -DLINUX
+ #CFLAGS += -DMACOSX
+@@ -19,6 +23,9 @@
+ printf(" -D_VERSION='\"%s\"'", _VERSION);
+ #ifdef LINUX
+ printf(" -DLINUX");
++#endif
++#if defined __FreeBSD__
++ printf(" -DFREEBSD");
+ #endif
+ #ifdef MACOSX
+ printf(" -DMACOSX");
diff --git a/net/Sockets/files/patch-Uid.cpp b/net/Sockets/files/patch-Uid.cpp
new file mode 100644
index 000000000000..6066b39928ea
--- /dev/null
+++ b/net/Sockets/files/patch-Uid.cpp
@@ -0,0 +1,36 @@
+--- Uid.cpp.orig Sat Jan 15 21:36:02 2005
++++ Uid.cpp Sat Jan 15 22:41:30 2005
+@@ -20,12 +20,22 @@
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
++#if (defined(__unix__) || defined(unix)) && !defined(USG)
++#include <sys/param.h>
++#endif
++
+ #include <stdio.h>
+ #include <assert.h>
+ #ifdef _WIN32
+ #include <objbase.h>
+ #elif defined MACOSX
+ #include "uuid.h"
++#elif defined __FreeBSD__
++# if __FreeBSD_version >= 500000
++# include <uuid.h>
++# else
++# error FreeBSD versions prior to 500000 does not support uuid(3)
++# endif
+ #else
+ #include <uuid/uuid.h>
+ #endif
+@@ -49,6 +59,10 @@
+ exit(-1);
+ }
+ memcpy(m_bufuid, &randomGuid, 16);
++#elif defined __FreeBSD__
++ uuid_t uid;
++ uuid_create(&uid, NULL);
++ memcpy(m_bufuid, &uid, 16);
+ #else
+ uuid_t uid;
+ uuid_generate(uid);
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
+ // ----------------------------------------