X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fnet%2Fcompat.h;h=9859b60280d5631571cdbebdf611c28c8e283b48;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=290bab46d457c36dba511f49c69eda6d1998b998;hpb=76828883507a47dae78837ab5dec5a5b4513c667;p=linux-2.6.git diff --git a/include/net/compat.h b/include/net/compat.h index 290bab46d..9859b6028 100644 --- a/include/net/compat.h +++ b/include/net/compat.h @@ -1,7 +1,8 @@ #ifndef NET_COMPAT_H #define NET_COMPAT_H -#include + +struct sock; #if defined(CONFIG_COMPAT) @@ -23,6 +24,8 @@ struct compat_cmsghdr { compat_int_t cmsg_type; }; +extern int compat_sock_get_timestamp(struct sock *, struct timeval __user *); + #else /* defined(CONFIG_COMPAT) */ #define compat_msghdr msghdr /* to avoid compiler warnings */ #endif /* defined(CONFIG_COMPAT) */ @@ -34,7 +37,6 @@ extern asmlinkage long compat_sys_recvmsg(int,struct compat_msghdr __user *,unsi extern asmlinkage long compat_sys_getsockopt(int, int, int, char __user *, int __user *); extern int put_cmsg_compat(struct msghdr*, int, int, int, void *); -struct sock; extern int cmsghdr_from_user_compat_to_kern(struct msghdr *, struct sock *, unsigned char *, int); #endif /* NET_COMPAT_H */