lkml.org 
[lkml]   [2019]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] linux/scc.h: make uapi linux/scc.h self-contained
Date
Userspace cannot compile <linux/scc.h>

CC usr/include/linux/scc.h.s
In file included from <command-line>:32:0:
./usr/include/linux/scc.h:20:20: error: ‘SIOCDEVPRIVATE’ undeclared here (not in a function)
SIOCSCCRESERVED = SIOCDEVPRIVATE,
^~~~~~~~~~~~~~

Include <linux/sockios.h> to make it self-contained, and add it to
the compile-test coverage.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

include/uapi/linux/scc.h | 1 +
usr/include/Makefile | 1 -
2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/scc.h b/include/uapi/linux/scc.h
index c5bc7f747755..947edb17ce9d 100644
--- a/include/uapi/linux/scc.h
+++ b/include/uapi/linux/scc.h
@@ -4,6 +4,7 @@
#ifndef _UAPI_SCC_H
#define _UAPI_SCC_H

+#include <linux/sockios.h>

/* selection of hardware types */

diff --git a/usr/include/Makefile b/usr/include/Makefile
index 107d04bd5ee3..b469e39eafc8 100644
--- a/usr/include/Makefile
+++ b/usr/include/Makefile
@@ -41,7 +41,6 @@ header-test- += linux/omapfb.h
header-test- += linux/patchkey.h
header-test- += linux/phonet.h
header-test- += linux/reiserfs_xattr.h
-header-test- += linux/scc.h
header-test- += linux/sctp.h
header-test- += linux/signal.h
header-test- += linux/sysctl.h
--
2.17.1
\
 
 \ /
  Last update: 2019-11-08 06:59    [W:0.041 / U:68.976 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site