summaryrefslogtreecommitdiff
path: root/games/edge/files/patch-src__unx_net.cc
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2011-08-09 15:45:46 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2011-08-09 15:45:46 +0000
commit0152b8828ca115a59ff607edd5e361890c7e22a3 (patch)
tree3bb2179cbde21151ad70c77c08b5291879b83de8 /games/edge/files/patch-src__unx_net.cc
parentRelease maintainership and pass to perl@FreeBSD.org (diff)
Update to 1.35
PR: 159442 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
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>