Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Dmitry V. Levin and committed by
David S. Miller
40df93be 557d7acd

+1
+1
include/uapi/linux/llc.h
··· 14 14 #define _UAPI__LINUX_LLC_H 15 15 16 16 #include <linux/socket.h> 17 + #include <linux/if.h> /* For IFHWADDRLEN. */ 17 18 18 19 #define __LLC_SOCK_SIZE__ 16 /* sizeof(sockaddr_llc), word align. */ 19 20 struct sockaddr_llc {