opnsense-ports/games/edge/files/patch-src__unx_net.cc
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01: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>