* [PATCH] uapi: fix linux/llc.h userspace compilation error
@ 2017-02-22 22:38 Dmitry V. Levin
2017-02-23 15:47 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Dmitry V. Levin @ 2017-02-22 22:38 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev, linux-kernel
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>
---
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 <linux/socket.h>
+#include <linux/if.h> /* For IFHWADDRLEN. */
#define __LLC_SOCK_SIZE__ 16 /* sizeof(sockaddr_llc), word align. */
struct sockaddr_llc {
--
ldv
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] uapi: fix linux/llc.h userspace compilation error
2017-02-22 22:38 [PATCH] uapi: fix linux/llc.h userspace compilation error Dmitry V. Levin
@ 2017-02-23 15:47 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-02-23 15:47 UTC (permalink / raw)
To: ldv; +Cc: netdev, linux-kernel
From: "Dmitry V. Levin" <ldv@altlinux.org>
Date: Thu, 23 Feb 2017 01:38:26 +0300
> 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>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-23 15:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-22 22:38 [PATCH] uapi: fix linux/llc.h userspace compilation error Dmitry V. Levin
2017-02-23 15:47 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).