summaryrefslogtreecommitdiff
path: root/games/assaultcube/files/patch-source_enet_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/assaultcube/files/patch-source_enet_unix.c')
-rw-r--r--games/assaultcube/files/patch-source_enet_unix.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/games/assaultcube/files/patch-source_enet_unix.c b/games/assaultcube/files/patch-source_enet_unix.c
new file mode 100644
index 000000000000..b148e09dddb8
--- /dev/null
+++ b/games/assaultcube/files/patch-source_enet_unix.c
@@ -0,0 +1,20 @@
+--- source/enet/unix.c.orig 2013-10-22 18:57:22 UTC
++++ source/enet/unix.c
+@@ -97,7 +97,7 @@ enet_address_set_host (ENetAddress * add
+ char buffer [2048];
+ int errnum;
+
+-#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
++#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
+ gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum);
+ #else
+ hostEntry = gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & errnum);
+@@ -150,7 +150,7 @@ enet_address_get_host (const ENetAddress
+
+ in.s_addr = address -> host;
+
+-#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
++#if defined(linux) || defined(__linux) || defined(__linux__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
+ gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum);
+ #else
+ hostEntry = gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & errnum);