Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1586527
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | "Dmitry V. Levin" <ldv@altlinux.org> |
| Newsgroups | linux.kernel |
| Subject | [PATCH] uapi: fix linux/llc.h userspace compilation error |
| Date | Wed, 22 Feb 2017 23:50:01 +0100 |
| Message-ID | <tdNTr-eQ-1@gated-at.bofh.it> (permalink) |
| X-Original-To | "David S. Miller" <davem@davemloft.net> |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Disposition | inline |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 25 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | netdev@vger.kernel.org, linux-kernel@vger.kernel.org |
| X-Original-Date | Thu, 23 Feb 2017 01:38:26 +0300 |
| X-Original-Message-ID | <20170222223826.GB14311@altlinux.org> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1586527 |
Show key headers only | View raw
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
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] uapi: fix linux/llc.h userspace compilation error "Dmitry V. Levin" <ldv@altlinux.org> - 2017-02-22 23:50 +0100 Re: [PATCH] uapi: fix linux/llc.h userspace compilation error David Miller <davem@davemloft.net> - 2017-02-23 16:50 +0100
csiph-web