Package: enigma
Severity: important
Version: 1.00~beta-r473-2
Tags: patch
Hi,
the current version fails to build on GNU/kFreeBSD.
It needs small tweaks for lib-src/enet/unix.c, see bellow.
The patch should also help for hurd.
It would also be nice if you can ask upstream
to include this changes.
Thanks in advance
Petr
--- lib-src/enet/unix.c~
+++ lib-src/enet/unix.c
@@ -80,7 +80,7 @@
char buffer [2048];
int errnum;
-#ifdef linux
+#if defined(linux) || defined(__GLIBC__) || defined(__GNU__)
gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & hostEntry, &
errnum);
#else
hostEntry = gethostbyname_r (name, & hostData, buffer, sizeof
(buffer), & errnum);
@@ -118,7 +118,7 @@
in.s_addr = address -> host;
-#ifdef linux
+#if defined(linux) || defined(__GLIBC__) || defined(__GNU__)
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);
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]