diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2010-03-15 22:35:32 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2010-03-15 22:35:32 +0800 |
commit | 3f3c5279597698d8d711c9eb9788b36b3f84e5d2 (patch) | |
tree | 245b0517afb1919fbed0c378b459ea501a5a7c81 /x11-toolkits/plib | |
parent | 48ae6f6a3aba231794eb363b2a1fa502a00c976c (diff) | |
download | freebsd-ports-gnome-3f3c5279597698d8d711c9eb9788b36b3f84e5d2.tar.gz freebsd-ports-gnome-3f3c5279597698d8d711c9eb9788b36b3f84e5d2.tar.zst freebsd-ports-gnome-3f3c5279597698d8d711c9eb9788b36b3f84e5d2.zip |
- Add a patch to fix network-related functionality
PR: 144575 ([1]), 138786 ([2])
Submitted by: Ganael Laplanche <ganael.laplanche@martymac.com> [1],
Martin Laabs <spamtrap@martinlaabs.de> [2]
Patch by: Ganael Laplanche <ganael.laplanche@martymac.com>
Diffstat (limited to 'x11-toolkits/plib')
-rw-r--r-- | x11-toolkits/plib/Makefile | 2 | ||||
-rw-r--r-- | x11-toolkits/plib/files/patch-src-net-netSocket.cxx | 21 | ||||
-rw-r--r-- | x11-toolkits/plib/files/patch-src-net-netSocket.h | 27 |
3 files changed, 49 insertions, 1 deletions
diff --git a/x11-toolkits/plib/Makefile b/x11-toolkits/plib/Makefile index ad6213c11b7f..9b4fea0abfa1 100644 --- a/x11-toolkits/plib/Makefile +++ b/x11-toolkits/plib/Makefile @@ -7,7 +7,7 @@ PORTNAME= plib PORTVERSION= 1.8.5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= x11-toolkits MASTER_SITES= http://plib.sourceforge.net/dist/ diff --git a/x11-toolkits/plib/files/patch-src-net-netSocket.cxx b/x11-toolkits/plib/files/patch-src-net-netSocket.cxx new file mode 100644 index 000000000000..17b5da86e558 --- /dev/null +++ b/x11-toolkits/plib/files/patch-src-net-netSocket.cxx @@ -0,0 +1,21 @@ +--- src/net/netSocket.cxx.orig 2008-03-11 05:06:20.000000000 +0300 ++++ src/net/netSocket.cxx 2010-03-09 18:53:58.000000000 +0300 +@@ -38,6 +38,7 @@ + #include <unistd.h> + #include <netdb.h> + #include <fcntl.h> ++#include <stddef.h> + + #else + +@@ -64,8 +65,10 @@ + + void netAddress::set ( const char* host, int port ) + { ++ int dummy[(sizeof(netAddress) == sizeof(sockaddr_in))*2-1]; // Compile time assert + memset(this, 0, sizeof(netAddress)); + ++ sin_len = sizeof(netAddress); + sin_family = AF_INET ; + sin_port = htons (port); + diff --git a/x11-toolkits/plib/files/patch-src-net-netSocket.h b/x11-toolkits/plib/files/patch-src-net-netSocket.h new file mode 100644 index 000000000000..80a135049a84 --- /dev/null +++ b/x11-toolkits/plib/files/patch-src-net-netSocket.h @@ -0,0 +1,27 @@ +--- src/net/netSocket.h.orig 2008-03-11 05:06:20.000000000 +0300 ++++ src/net/netSocket.h 2010-03-09 18:16:55.000000000 +0300 +@@ -41,6 +41,8 @@ + #define NET_SOCKET_H + + #include "ul.h" ++#include <sys/types.h> ++#include <sys/socket.h> + #include <errno.h> + + /* +@@ -49,10 +51,11 @@ + class netAddress + { + /* DANGER!!! This MUST match 'struct sockaddr_in' exactly! */ +- short sin_family ; +- unsigned short sin_port ; +- unsigned int sin_addr ; +- char sin_zero [ 8 ] ; ++ int8_t sin_len; ++ sa_family_t sin_family; ++ in_port_t sin_port; ++ in_addr_t sin_addr; ++ char sin_zero[8]; + + public: + netAddress () {} |