projects/linux·commit 29f767a2

[PATCH] net/compat.h build fix

29f767a2 · Andrew Morton <[email protected]> · 2006-05-30 21:27:18 -07:00

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]>
Commit
29f767a254be8fd44fb5d2b5a48e9cda8399c4ea
Parents
c331eb04

Changes

1 files changed · +2 −1

FileStatusAddDelContent
include/net/compat.hmodified+2−1View file

include/net/compat.h

View file
diff --git a/include/net/compat.h b/include/net/compat.h
index 8662b8f..e65cbed 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) */