Commit 29f767a2 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[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=6625Acked-by: default avatar"David S. Miller" <davem@davemloft.net>
Cc: Cedric Pellerin <cedric@bidouillesoft.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c331eb04
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
#include <linux/config.h> #include <linux/config.h>
struct sock;
#if defined(CONFIG_COMPAT) #if defined(CONFIG_COMPAT)
#include <linux/compat.h> #include <linux/compat.h>
...@@ -23,7 +25,6 @@ struct compat_cmsghdr { ...@@ -23,7 +25,6 @@ struct compat_cmsghdr {
compat_int_t cmsg_type; compat_int_t cmsg_type;
}; };
struct sock;
extern int compat_sock_get_timestamp(struct sock *, struct timeval __user *); extern int compat_sock_get_timestamp(struct sock *, struct timeval __user *);
#else /* defined(CONFIG_COMPAT) */ #else /* defined(CONFIG_COMPAT) */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment