aboutsummaryrefslogtreecommitdiff
path: root/include/net/compat.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-05-30 21:27:18 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-05-31 16:27:11 -0700
commit29f767a254be8fd44fb5d2b5a48e9cda8399c4ea (patch)
treeb14e98dd48ad7dd0343d09fe4f7224bc98bc9991 /include/net/compat.h
parentc331eb04b995ad276a7ece4608326f1db4e137d8 (diff)
[PATCH] net/compat.h build fix
From: Andrew Morton <akpm@osdl.org> 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" <davem@davemloft.net> Cc: Cedric Pellerin <cedric@bidouillesoft.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/net/compat.h')
-rw-r--r--include/net/compat.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/compat.h b/include/net/compat.h
index 8662b8f43df..e65cbedb6ab 100644
--- a/include/net/compat.h
+++ b/include/net/compat.h
@@ -3,6 +3,8 @@
#include <linux/config.h>
+struct sock;
+
#if defined(CONFIG_COMPAT)
#include <linux/compat.h>
@@ -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) */