Skip to content

Commit

Permalink
Fix userspace export of <linux/net.h>
Browse files Browse the repository at this point in the history
Including <linux/fcntl.h> in the user-visible part of this header has
caused build regressions with headers from 2.6.27-rc. Move it down to
the #ifdef __KERNEL__ part, which is the only place it's needed. Move
some other kernel-only things down there too, while we're at it.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
David Woodhouse authored and Linus Torvalds committed Aug 26, 2008
1 parent b22dfb7 commit 5770a3f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions include/linux/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,9 @@
#ifndef _LINUX_NET_H
#define _LINUX_NET_H

#include <linux/wait.h>
#include <linux/socket.h>
#include <linux/fcntl.h> /* For O_CLOEXEC and O_NONBLOCK */
#include <asm/socket.h>

struct poll_table_struct;
struct pipe_inode_info;
struct inode;
struct net;

#define NPROTO AF_MAX

#define SYS_SOCKET 1 /* sys_socket(2) */
Expand Down Expand Up @@ -62,6 +55,13 @@ typedef enum {
#ifdef __KERNEL__
#include <linux/stringify.h>
#include <linux/random.h>
#include <linux/wait.h>
#include <linux/fcntl.h> /* For O_CLOEXEC and O_NONBLOCK */

struct poll_table_struct;
struct pipe_inode_info;
struct inode;
struct net;

#define SOCK_ASYNC_NOSPACE 0
#define SOCK_ASYNC_WAITDATA 1
Expand Down

0 comments on commit 5770a3f

Please sign in to comment.