Package: moreutils
Version: 0.51
Severity: normal
Tags: patch
Attached patch fixes FTBFS on illumos-amd64.
Please consider applying it.
Proposed changes at http://cgit.osdyson.org/moreutils.git/log/ as well.
Thanks.
-- System Information:
Debian Release: bok
Architecture: illumos-amd64 (i86pc)
Kernel: SunOS 5.11
Locale: LANG=C, LC_CTYPE=C (charmap=646)
Shell: /bin/sh linked to /usr/bin/dash
Versions of packages moreutils depends on:
ii libc1 2.10+11
ii libipc-run-perl 0.90-1
ii perl 5.14.2-21+dyson1
moreutils recommends no packages.
Versions of packages moreutils suggests:
pn libtime-duration-perl <none>
ii libtimedate-perl 1.2000-1
-- no debconf information
diff --git a/ifdata.c b/ifdata.c
index 6d7ed6f..adf9f87 100644
--- a/ifdata.c
+++ b/ifdata.c
@@ -23,6 +23,12 @@
#include <net/if.h>
#endif
+#if defined(__sun)
+ #define s6_addr16 _S6_un._S6_u8
+ #include <net/if.h>
+ #include <sys/sockio.h>
+#endif
+
#include <netinet/in.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/ifne.c b/ifne.c
index d8ecea9..e8bc100 100644
--- a/ifne.c
+++ b/ifne.c
@@ -23,6 +23,10 @@
#include <sys/wait.h>
#include <sys/types.h>
#include <string.h>
+#ifdef __sun
+#include <signal.h> /* raise() */
+#endif
+
#define streq(a, b) (!strcmp((a), (b)))
static void stdin_to_stream(char *buf, ssize_t r, FILE *outf) {
diff --git a/parallel.c b/parallel.c
index 1bd796b..b9d7ab2 100644
--- a/parallel.c
+++ b/parallel.c
@@ -32,6 +32,10 @@
#include <sys/wait.h>
#include <unistd.h>
+#ifdef __sun
+# include <sys/loadavg.h> /* getloadavg() */
+#endif
+
#if !defined(WEXITED)
#define WEXITED 0
#endif