mirror of
https://git.freebsd.org/ports.git
synced 2025-07-01 17:40:40 -04:00
ENet's purpose is to provide a relatively thin, simple and robust network communication layer on top of UDP (User Datagram Protocol). The primary feature it provides is optional reliable, in-order delivery of packets. Author: Lee Salzman WWW: http://enet.cubik.org Approved by: sem (mentor)
20 lines
767 B
C
20 lines
767 B
C
--- unix.c.orig Sat Sep 23 22:34:14 2006
|
|
+++ unix.c Sat Sep 23 22:34:51 2006
|
|
@@ -71,7 +71,7 @@
|
|
char buffer [2048];
|
|
int errnum;
|
|
|
|
-#ifdef linux
|
|
+#if defined(linux) || defined(__FreeBSD__)
|
|
gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum);
|
|
#else
|
|
hostEntry = gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & errnum);
|
|
@@ -101,7 +101,7 @@
|
|
|
|
in.s_addr = address -> host;
|
|
|
|
-#ifdef linux
|
|
+#if defined(linux) || defined(__FreeBSD__)
|
|
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);
|