uapi: fix linux/llc.h userspace compilation error
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 22 Feb 2017 22:38:26 +0000 (01:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Feb 2017 15:46:08 +0000 (10:46 -0500)
Include <linux/if.h> to fix the following linux/llc.h userspace
compilation error:

/usr/include/linux/llc.h:26:27: error: 'IFHWADDRLEN' undeclared here (not in a function)
  unsigned char   sllc_mac[IFHWADDRLEN];

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/llc.h

index 9c987a4024739fb4c4e98e8e2cd8a5cb943574aa..a6c17f66ee94584ccb7c5375145e521acc1496ee 100644 (file)
@@ -14,6 +14,7 @@
 #define _UAPI__LINUX_LLC_H
 
 #include <linux/socket.h>
+#include <linux/if.h>          /* For IFHWADDRLEN. */
 
 #define __LLC_SOCK_SIZE__ 16   /* sizeof(sockaddr_llc), word align. */
 struct sockaddr_llc {