Skip to content

Commit

Permalink
[PATCH] net/compat.h build fix
Browse files Browse the repository at this point in the history
From: Andrew Morton <[email protected]>

Move the forward decl outside the ifdef, since we use it in both legs.

Should fix the spacr64 build error reported in
	http://bugzilla.kernel.org/show_bug.cgi?id=6625

Acked-by: "David S. Miller" <[email protected]>
Cc: Cedric Pellerin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed May 31, 2006
1 parent c331eb0 commit 29f767a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/net/compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

#include <linux/config.h>

struct sock;

#if defined(CONFIG_COMPAT)

#include <linux/compat.h>
Expand All @@ -23,7 +25,6 @@ struct compat_cmsghdr {
compat_int_t cmsg_type;
};

struct sock;
extern int compat_sock_get_timestamp(struct sock *, struct timeval __user *);

#else /* defined(CONFIG_COMPAT) */
Expand Down

0 comments on commit 29f767a

Please sign in to comment.