diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2015-12-04 22:16:22 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2016-02-18 22:14:39 +0100 |
commit | 6fb3580fa43faf7643f0460ad0cd288253c7983c (patch) | |
tree | 4b81b7c5a17c2533b1ede20b07a1eac6cce42016 /backport/backport-include/linux/net.h | |
parent | 005b70fd55bf066e13feba6eeacae463480dd5b8 (diff) |
header: add sk_set_bit() and sk_clear_bit()
Upstream commit: 74ec2bcbe4e072baf6d7fc9d78be6df52cdf05cd
This adds the sk_set_bit() and sk_clear_bit() functions in addition to
the renaming of SOCK_ASYNC_NOSPACE and SOCK_ASYNC_WAITDATA. This is
needed since upstream commit 9cd3e072b0be "net: rename
SOCK_ASYNC_NOSPACE and SOCK_ASYNC_WAITDATA"
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'backport/backport-include/linux/net.h')
-rw-r--r-- | backport/backport-include/linux/net.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backport/backport-include/linux/net.h b/backport/backport-include/linux/net.h index 4d9250b8..6d2af69a 100644 --- a/backport/backport-include/linux/net.h +++ b/backport/backport-include/linux/net.h @@ -102,4 +102,11 @@ bool __net_get_random_once(void *buf, int nbytes, bool *done, __sock_create(net, family, type, proto, res, 1) #endif +#ifndef SOCKWQ_ASYNC_NOSPACE +#define SOCKWQ_ASYNC_NOSPACE SOCK_ASYNC_NOSPACE +#endif +#ifndef SOCKWQ_ASYNC_WAITDATA +#define SOCKWQ_ASYNC_WAITDATA SOCK_ASYNC_WAITDATA +#endif + #endif /* __BACKPORT_LINUX_NET_H */ |