summaryrefslogtreecommitdiff
path: root/hscript/network.cc
diff options
context:
space:
mode:
Diffstat (limited to 'hscript/network.cc')
-rw-r--r--hscript/network.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/hscript/network.cc b/hscript/network.cc
index 03c5a03..27e8a9e 100644
--- a/hscript/network.cc
+++ b/hscript/network.cc
@@ -17,6 +17,9 @@
# include <string.h> /* strerror */
# include <sys/ioctl.h> /* ioctl, ioctl numbers */
# include <unistd.h> /* close */
+#else
+/*! The size of Linux interface names. */
+# define IFNAMSIZ 16
#endif
#include "network.hh"
#include "util/output.hh"