last_patch95 from vodz:
[oweals/busybox.git] / networking / nameif.c
index e74a04213d899ae7b2d8b5a3047aadb4bf9f8607..dca7c8c08f95e31be9c2b538151502ccb37fb170 100644 (file)
 
 #include "busybox.h"
 
+/* Older versions of net/if.h do not appear to define IF_NAMESIZE. */
+#ifndef IF_NAMESIZE
+#  ifdef IFNAMSIZ
+#    define IF_NAMESIZE IFNAMSIZ
+#  else
+#    define IF_NAMESIZE 16
+#  endif
+#endif
+
 /* take from linux/sockios.h */
 #define SIOCSIFNAME    0x8923  /* set interface name */