From: David Woodhouse Date: Tue, 2 Jan 2007 08:07:50 +0000 (-0800) Subject: [PATCH] NET: Don't export linux/random.h outside __KERNEL__ X-Git-Tag: v2.6.19.2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6aa513624c75f67c22f3ae094644dd458bdc0204;p=thirdparty%2Fkernel%2Fstable.git [PATCH] NET: Don't export linux/random.h outside __KERNEL__ Don't add it there please; add it lower down inside the existing #ifdef __KERNEL__. You just made the _userspace_ net.h include random.h, which then fails to compile unless was already included. Signed-off-by: David Woodhouse Signed-off-by: David S. Miller Signed-off-by: Chris Wright --- diff --git a/include/linux/net.h b/include/linux/net.h index 15c733b816f08..b701d339f8c0e 100644 --- a/include/linux/net.h +++ b/include/linux/net.h @@ -19,7 +19,6 @@ #define _LINUX_NET_H #include -#include #include struct poll_table_struct; @@ -57,6 +56,7 @@ typedef enum { #ifdef __KERNEL__ #include +#include #define SOCK_ASYNC_NOSPACE 0 #define SOCK_ASYNC_WAITDATA 1