aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/uapi/linux/if.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/linux/if.h b/include/uapi/linux/if.h
index 1158a043342a..259617a551f2 100644
--- a/include/uapi/linux/if.h
+++ b/include/uapi/linux/if.h
@@ -24,6 +24,10 @@
24#include <linux/socket.h> /* for "struct sockaddr" et al */ 24#include <linux/socket.h> /* for "struct sockaddr" et al */
25#include <linux/compiler.h> /* for "__user" et al */ 25#include <linux/compiler.h> /* for "__user" et al */
26 26
27#ifndef __KERNEL__
28#include <sys/socket.h> /* for struct sockaddr. */
29#endif
30
27#if __UAPI_DEF_IF_IFNAMSIZ 31#if __UAPI_DEF_IF_IFNAMSIZ
28#define IFNAMSIZ 16 32#define IFNAMSIZ 16
29#endif /* __UAPI_DEF_IF_IFNAMSIZ */ 33#endif /* __UAPI_DEF_IF_IFNAMSIZ */