summaryrefslogtreecommitdiff
path: root/devel/directfb/files/patch-lib-voodoo-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/directfb/files/patch-lib-voodoo-manager.c')
-rw-r--r--devel/directfb/files/patch-lib-voodoo-manager.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/devel/directfb/files/patch-lib-voodoo-manager.c b/devel/directfb/files/patch-lib-voodoo-manager.c
index 66fa4d181d92..0b1a87c85b64 100644
--- a/devel/directfb/files/patch-lib-voodoo-manager.c
+++ b/devel/directfb/files/patch-lib-voodoo-manager.c
@@ -1,6 +1,14 @@
---- lib/voodoo/manager.c.orig 2007-12-15 14:30:28.000000000 +0200
-+++ lib/voodoo/manager.c 2008-03-16 14:51:33.000000000 +0200
-@@ -186,7 +186,7 @@
+--- lib/voodoo/manager.c.orig 2009-06-02 18:47:23.000000000 +0200
++++ lib/voodoo/manager.c 2010-06-03 09:21:51.000000000 +0200
+@@ -40,6 +40,7 @@
+ #include <sys/socket.h>
+ #include <sys/time.h>
+
++#include <netinet/in_systm.h> /* for n_long, required for build on 7.x */
+ #include <netinet/in.h>
+ #include <netinet/ip.h>
+ #include <netinet/tcp.h>
+@@ -186,10 +187,10 @@
D_DEBUG( "Voodoo/Manager: Creating manager at %p.\n", manager );
@@ -8,4 +16,8 @@
+ if (setsockopt( fd, IPPROTO_IP, IP_TOS, &tos, sizeof(tos) ) < 0)
D_PERROR( "Voodoo/Manager: Could not set IP_TOS!\n" );
- if (setsockopt( fd, SOL_TCP, TCP_NODELAY, &one, sizeof(one) ) < 0)
+- if (setsockopt( fd, SOL_TCP, TCP_NODELAY, &one, sizeof(one) ) < 0)
++ if (setsockopt( fd, IPPROTO_TCP, TCP_NODELAY, &one, sizeof(one) ) < 0)
+ D_PERROR( "Voodoo/Manager: Could not set TCP_NODELAY!\n" );
+
+ DUMP_SOCKET_OPTION( SO_SNDLOWAT );