aboutsummaryrefslogtreecommitdiffstats
path: root/net/enet
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2015-02-14 18:48:24 +0800
committernemysis <nemysis@FreeBSD.org>2015-02-14 18:48:24 +0800
commit8592e965bb175a8980edb1a850a1faae22ae2e60 (patch)
tree8f52f347e572626842aef1037627fd48e159d7d2 /net/enet
parent7be5260b5f8122341240ab8ef283edab65950ccd (diff)
downloadfreebsd-ports-gnome-8592e965bb175a8980edb1a850a1faae22ae2e60.tar.gz
freebsd-ports-gnome-8592e965bb175a8980edb1a850a1faae22ae2e60.tar.zst
freebsd-ports-gnome-8592e965bb175a8980edb1a850a1faae22ae2e60.zip
- Add patch, fix build on DragonFly [1]
https://github.com/lsalzman/enet/issues/42 PR: 197610 Submitted by: jbeich [1]
Diffstat (limited to 'net/enet')
-rw-r--r--net/enet/files/patch-unix.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/net/enet/files/patch-unix.c b/net/enet/files/patch-unix.c
new file mode 100644
index 000000000000..2cca9a4791c2
--- /dev/null
+++ b/net/enet/files/patch-unix.c
@@ -0,0 +1,20 @@
+--- unix.c.orig 2014-04-24 09:49:05.000000000 +0200
++++ unix.c 2015-02-14 11:32:25.346006823 +0100
+@@ -104,7 +104,7 @@
+ 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);
+@@ -162,7 +162,7 @@
+
+ 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);