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];
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -14,6 +14,7 @@ · 13 unmodified lines | |||
| 14 | #define _UAPI__LINUX_LLC_H | 14 | #define _UAPI__LINUX_LLC_H |
| 15 | 15 | ||
| 16 | #include <linux/socket.h> | 16 | #include <linux/socket.h> |
| 17 | #include <linux/if.h> /* For IFHWADDRLEN. */ | ||
| 17 | 18 | ||
| 18 | #define __LLC_SOCK_SIZE__ 16 /* sizeof(sockaddr_llc), word align. */ | 19 | #define __LLC_SOCK_SIZE__ 16 /* sizeof(sockaddr_llc), word align. */ |
| 19 | struct sockaddr_llc { | 20 | struct sockaddr_llc { |