freebsd-ports/games/edge/files/patch-src__unx_net.cc
Emanuel Haupt 0152b8828c Update to 1.35
PR:		159442
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
2011-08-09 15:45:46 +00:00

20 lines
496 B
C++

--- 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 MACOSX
+#ifndef __linux__
#include <net/if.h>
#else
#include <linux/netdevice.h>