[PATCH] uapi: fix linux/llc.h userspace compilation error

2017-02-22 Thread Dmitry V. Levin
Include  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 
---
 include/uapi/linux/llc.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/uapi/linux/llc.h b/include/uapi/linux/llc.h
index 9c987a4..a6c17f6 100644
--- a/include/uapi/linux/llc.h
+++ b/include/uapi/linux/llc.h
@@ -14,6 +14,7 @@
 #define _UAPI__LINUX_LLC_H
 
 #include 
+#include   /* For IFHWADDRLEN. */
 
 #define __LLC_SOCK_SIZE__ 16   /* sizeof(sockaddr_llc), word align. */
 struct sockaddr_llc {
-- 
ldv


Re: [PATCH] uapi: fix linux/llc.h userspace compilation error

2017-02-23 Thread David Miller
From: "Dmitry V. Levin" 
Date: Thu, 23 Feb 2017 01:38:26 +0300

> Include  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 

Applied.