]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/2.6.19.2/net-don-t-export-linux-random.h-outside-__kernel__.patch
Fixes for 4.19
[thirdparty/kernel/stable-queue.git] / releases / 2.6.19.2 / net-don-t-export-linux-random.h-outside-__kernel__.patch
1 From stable-bounces@linux.kernel.org Tue Jan 2 00:14:53 2007
2 Date: Tue, 02 Jan 2007 00:07:50 -0800 (PST)
3 Message-Id: <20070102.000750.115910105.davem@davemloft.net>
4 To: stable@kernel.org
5 From: David Miller <davem@davemloft.net>
6 Subject: NET: Don't export linux/random.h outside __KERNEL__
7
8 From: David Woodhouse <dwmw2@infradead.org>
9
10 Don't add it there please; add it lower down inside the existing #ifdef
11 __KERNEL__. You just made the _userspace_ net.h include random.h, which
12 then fails to compile unless <asm/types.h> was already included.
13
14 Signed-off-by: David Woodhouse <dwmw2@infradead.org>
15 Signed-off-by: David S. Miller <davem@davemloft.net>
16 Signed-off-by: Chris Wright <chrisw@sous-sol.org>
17
18 ---
19 include/linux/net.h | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22 --- linux-2.6.19.1.orig/include/linux/net.h
23 +++ linux-2.6.19.1/include/linux/net.h
24 @@ -19,7 +19,6 @@
25 #define _LINUX_NET_H
26
27 #include <linux/wait.h>
28 -#include <linux/random.h>
29 #include <asm/socket.h>
30
31 struct poll_table_struct;
32 @@ -57,6 +56,7 @@ typedef enum {
33
34 #ifdef __KERNEL__
35 #include <linux/stringify.h>
36 +#include <linux/random.h>
37
38 #define SOCK_ASYNC_NOSPACE 0
39 #define SOCK_ASYNC_WAITDATA 1