pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/enigma Make it build on recent DragonFly.
details: https://anonhg.NetBSD.org/pkgsrc/rev/98740944cb01
branches: trunk
changeset: 394098:98740944cb01
user: hasso <hasso%pkgsrc.org@localhost>
date: Fri Jun 05 07:04:11 2009 +0000
description:
Make it build on recent DragonFly.
diffstat:
games/enigma/distinfo | 3 ++-
games/enigma/patches/patch-aa | 30 ++++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 1 deletions(-)
diffs (46 lines):
diff -r 2ba0a2b94a76 -r 98740944cb01 games/enigma/distinfo
--- a/games/enigma/distinfo Fri Jun 05 02:59:50 2009 +0000
+++ b/games/enigma/distinfo Fri Jun 05 07:04:11 2009 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.7 2007/06/14 17:55:03 heinz Exp $
+$NetBSD: distinfo,v 1.8 2009/06/05 07:04:11 hasso Exp $
SHA1 (enigma-1.01.tar.gz) = 93f96ddd152e7474488cbb27ce0923312a851a9c
RMD160 (enigma-1.01.tar.gz) = 9dd91152cfced5352a669e8921fdbb270c0abc4e
Size (enigma-1.01.tar.gz) = 10847953 bytes
+SHA1 (patch-aa) = c0a337a1d1098815812e117f5ca49d9ed248a446
SHA1 (patch-aq) = 113580c3063cdfa11ee212f922edd5b40f229eea
diff -r 2ba0a2b94a76 -r 98740944cb01 games/enigma/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/enigma/patches/patch-aa Fri Jun 05 07:04:11 2009 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index