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>
5 From: David Miller <davem@davemloft.net>
6 Subject: NET: Don't export linux/random.h outside __KERNEL__
8 From: David Woodhouse <dwmw2@infradead.org>
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.
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>
19 include/linux/net.h | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
22 --- linux-2.6.19.1.orig/include/linux/net.h
23 +++ linux-2.6.19.1/include/linux/net.h
27 #include <linux/wait.h>
28 -#include <linux/random.h>
29 #include <asm/socket.h>
31 struct poll_table_struct;
32 @@ -57,6 +56,7 @@ typedef enum {
35 #include <linux/stringify.h>
36 +#include <linux/random.h>
38 #define SOCK_ASYNC_NOSPACE 0
39 #define SOCK_ASYNC_WAITDATA 1