summaryrefslogtreecommitdiff
path: root/hscript/network.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-20 00:22:18 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-20 00:22:18 -0500
commitd01890078c281453db8d5fc8ea7c082d0ce9782b (patch)
tree90454660cd165760bf063c672b60188fe31606f6 /hscript/network.cc
parent1fa3717743c217bb3dbe643a37a7ba96b5ff0ebd (diff)
downloadhorizon-d01890078c281453db8d5fc8ea7c082d0ce9782b.tar.gz
horizon-d01890078c281453db8d5fc8ea7c082d0ce9782b.tar.bz2
horizon-d01890078c281453db8d5fc8ea7c082d0ce9782b.tar.xz
horizon-d01890078c281453db8d5fc8ea7c082d0ce9782b.zip
hscript: Finish splitting install env code
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"