History

uapi: fix linux/llc.h userspace compilation error

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];

Dmitry V. Levin committed 9 years ago

Commit 40df93b1 parent 557d7ac1 file · +1 −0Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/llc.h+1−0
@@ -14,6 +14,7 @@ · 13 unmodified lines
1414 #define _UAPI__LINUX_LLC_H
1515
1616 #include <linux/socket.h>
17+#include <linux/if.h> /* For IFHWADDRLEN. */
1718
1819 #define __LLC_SOCK_SIZE__ 16 /* sizeof(sockaddr_llc), word align. */
1920 struct sockaddr_llc {