summaryrefslogtreecommitdiff
path: root/games/edge/files/patch-src__unx_net.cc
diff options
context:
space:
mode:
Diffstat (limited to 'games/edge/files/patch-src__unx_net.cc')
-rw-r--r--games/edge/files/patch-src__unx_net.cc28
1 files changed, 17 insertions, 11 deletions
diff --git a/games/edge/files/patch-src__unx_net.cc b/games/edge/files/patch-src__unx_net.cc
index 2b057fccfcc5..d76e0faf8917 100644
--- a/games/edge/files/patch-src__unx_net.cc
+++ b/games/edge/files/patch-src__unx_net.cc
@@ -1,14 +1,20 @@
---- ./src/unx_net.cc.orig Sat Nov 25 05:25:10 2006
-+++ ./src/unx_net.cc Wed Dec 5 23:19:09 2007
-@@ -36,7 +36,11 @@
- #define htons htons_FUCK
+--- src/unx_net.cc.orig 2009-10-19 12:14:58.000000000 +0900
++++ src/unx_net.cc 2011-07-29 02:18:56.000000000 +0900
+@@ -27,7 +27,7 @@
+ #include <sys/ioctl.h>
+
+ // -AJA- 2005/04/01: Yet another work-around for the huge pile of shit called C++
+-#ifndef MACOSX
++#ifdef __linux__
+ #define ntohl ntohl_CRUD
+ #define ntohs ntohs_CRUD
+ #define htonl htonl_CRUD
+@@ -36,7 +36,7 @@
#include <arpa/inet.h>
-+#ifdef __FreeBSD__
-+#include <net/if.h>
-+#else
- #include <linux/netdevice.h>
-+#endif
- // possible: <linux/if.h>
- // <linux/sockios.h>
+-#ifdef MACOSX
++#ifndef __linux__
+ #include <net/if.h>
+ #else
+ #include <linux/netdevice.h>