Skip to content

Commit

Permalink
[NET]: Don't export linux/random.h outside __KERNEL__.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Woodhouse authored and David S. Miller committed Dec 31, 2006
1 parent e44c39b commit cb4db4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#define _LINUX_NET_H

#include <linux/wait.h>
#include <linux/random.h>
#include <asm/socket.h>

struct poll_table_struct;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cb4db4c

Please sign in to comment.