Source: moreutils
Version: 0.49
Severity: important
Tags: patch
User: debian-h...@lists.debian.org
Usertags: hurd

Hi,

moreutils 0.49 does not compile on GNU/Hurd yet.

The two attached patches fix the issues in two tools:
* hurd-ifdata.diff (for ifdata)
  include <net/if.h> on Hurd (needed for struct ifreq & co)
* hurd-parallel.diff (for parallel)
  WEXITED is not provided by Hurd's glibc yet, so I changed the check
  for __FreeBSD_kernel__ to a generic check for WEXITED not defined
  already

[1] 
https://buildd.debian.org/status/fetch.php?pkg=moreutils&arch=hurd-i386&ver=0.49&stamp=1373495739

Thanks,
-- 
Pino
--- a/ifdata.c
+++ b/ifdata.c
@@ -14,6 +14,10 @@
 	#include <net/if.h>
 #endif
 
+#if defined(__GNU__)
+	#include <net/if.h>
+#endif
+
 #include <netinet/in.h>
 #include <errno.h>
 #include <fcntl.h>
--- a/parallel.c
+++ b/parallel.c
@@ -32,7 +32,7 @@
 #include <sys/wait.h>
 #include <unistd.h>
 
-#if defined(__FreeBSD_kernel__)
+#if !defined(WEXITED)
 #define WEXITED 0
 #endif
 

Reply via email to