summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-12-31 11:48:03 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-12-31 11:48:03 +0400
commite192f9caee613522cc4dc4a478703d9220698680 (patch)
treedb60e95e24627f31d3c63cffc04248fbc441119e
parent63d717ea18eea93f89ef9654b1626bef500b6e36 (diff)
downloadmoreutils-e192f9caee613522cc4dc4a478703d9220698680.tar.gz
Fixed ifdata for illumos/Solaris. Thanks to Gabriele Giacone
-rw-r--r--debian/changelog8
-rw-r--r--ifdata.c7
2 files changed, 13 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index b3eba9f..fcdead5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,12 +1,16 @@
-moreutils (0.51) UNRELEASED; urgency=low
+moreutils (0.51+dyson1) UNRELEASED; urgency=low
+ [ Joey Hess ]
* Fix ifdata to build on OS X. Thanks, Peter Eisentraut
Closes: #575294
* use docbook-xsl for building man pages. Thanks, Peter Eisentraut
for extensive patch set!
Closes: #728831
- -- Joey Hess <joeyh@debian.org> Mon, 04 Nov 2013 12:28:04 -0400
+ [ Igor Pashev ]
+ * Fixed ifdata for illumos/Solaris. Thanks to Gabriele Giacone
+
+ -- Igor Pashev <pashev.igor@gmail.com> Tue, 31 Dec 2013 11:38:59 +0400
moreutils (0.50) unstable; urgency=low
diff --git a/ifdata.c b/ifdata.c
index 6d7ed6f..62fdbfe 100644
--- a/ifdata.c
+++ b/ifdata.c
@@ -23,6 +23,13 @@
#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>