Skip to contentSkip to conversation

uapi: fix linux/llc.h userspace compilation error

PATCH Applied Dmitry V. Levin 2 participants 2 messages Feb 22, 2017 – Feb 23, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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];

---
 include/uapi/linux/llc.h | 1 +
 1 file changed, 1 insertion(+)
include/uapi/linux/llc.h +1 -0
index 9c987a4..a6c17f6 100644
@@ -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 {
Signature · 1 line
ldv
maintainer Applied
#1 lore raw

From: "Dmitry V. Levin" <[email protected]>
Date: Thu, 23 Feb 2017 01:38:26 +0300

Quoted 7 lines

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

Applied.