aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/compat.h
diff options
context:
space:
mode:
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 da680272cf6e..9859b60280d5 100644
--- a/include/net/compat.h
+++ b/include/net/compat.h
@@ -2,6 +2,8 @@
#define NET_COMPAT_H
+struct sock;
+
#if defined(CONFIG_COMPAT)
#include <linux/compat.h>
@@ -22,7 +24,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) */