[NET]: Don't export linux/random.h outside __KERNEL__.
authorDavid Woodhouse <dwmw2@infradead.org>
Fri, 29 Dec 2006 05:21:55 +0000 (21:21 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 31 Dec 2006 22:06:49 +0000 (14:06 -0800)
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 <asm/types.h> was already included.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/net.h

index 6f0dfeba509a40da8d0a724b52d0ac0c8c450219..f28d8a2e2c917ee862de2abd1144784a1c82a18a 100644 (file)
@@ -19,7 +19,6 @@
 #define _LINUX_NET_H
 
 #include <linux/wait.h>
-#include <linux/random.h>
 #include <asm/socket.h>
 
 struct poll_table_struct;
@@ -57,6 +56,7 @@ typedef enum {
 
 #ifdef __KERNEL__
 #include <linux/stringify.h>
+#include <linux/random.h>
 
 #define SOCK_ASYNC_NOSPACE     0
 #define SOCK_ASYNC_WAITDATA    1