diff options
author | hasso <hasso@pkgsrc.org> | 2009-06-05 07:04:11 +0000 |
---|---|---|
committer | hasso <hasso@pkgsrc.org> | 2009-06-05 07:04:11 +0000 |
commit | 7c11dba64152ef767942f92d54056b99cce99a7b (patch) | |
tree | 7d17e3b4842013c172c23a42305ae61f99dc5328 /games/enigma/patches | |
parent | 227eef2f1f7918a2ae5ff54e37474ec079c6a99d (diff) | |
download | pkgsrc-7c11dba64152ef767942f92d54056b99cce99a7b.tar.gz |
Make it build on recent DragonFly.
Diffstat (limited to 'games/enigma/patches')
-rw-r--r-- | games/enigma/patches/patch-aa | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/games/enigma/patches/patch-aa b/games/enigma/patches/patch-aa new file mode 100644 index 00000000000..70695138ed3 --- /dev/null +++ b/games/enigma/patches/patch-aa @@ -0,0 +1,30 @@ +$NetBSD: patch-aa,v 1.3 2009/06/05 07:04:11 hasso Exp $ + +--- lib-src/enet/unix.c.orig 2009-06-05 02:24:08 +0300 ++++ lib-src/enet/unix.c 2009-06-05 02:26:23 +0300 +@@ -8,6 +8,7 @@ + #include <sys/socket.h> + #include <sys/ioctl.h> + #include <sys/time.h> ++#include <sys/param.h> + #include <arpa/inet.h> + #include <netdb.h> + #include <unistd.h> +@@ -80,7 +81,7 @@ enet_address_set_host (ENetAddress * add + char buffer [2048]; + int errnum; + +-#if defined(linux) || defined(__GLIBC__) || defined(__GNU__) ++#if defined(linux) || defined(__GLIBC__) || defined(__GNU__) || (defined(__DragonFly__) && __DragonFly_version >= 200202) + gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); + #else + hostEntry = gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & errnum); +@@ -118,7 +119,7 @@ enet_address_get_host (const ENetAddress + + in.s_addr = address -> host; + +-#if defined(linux) || defined(__GLIBC__) || defined(__GNU__) ++#if defined(linux) || defined(__GLIBC__) || defined(__GNU__) || (defined(__DragonFly__) && __DragonFly_version >= 200202) + 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); |