diff options
Diffstat (limited to 'meta/recipes-core/uclibc/uclibc-0.9.33/define-MSG_CMSG_CLOEXEC.patch')
-rw-r--r-- | meta/recipes-core/uclibc/uclibc-0.9.33/define-MSG_CMSG_CLOEXEC.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-core/uclibc/uclibc-0.9.33/define-MSG_CMSG_CLOEXEC.patch b/meta/recipes-core/uclibc/uclibc-0.9.33/define-MSG_CMSG_CLOEXEC.patch new file mode 100644 index 0000000000..4e900f3931 --- /dev/null +++ b/meta/recipes-core/uclibc/uclibc-0.9.33/define-MSG_CMSG_CLOEXEC.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | Add definition of MSG_WAITFORONE and MSG_CMSG_CLOEXEC | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | Index: git/libc/sysdeps/linux/common/bits/socket.h | ||
6 | =================================================================== | ||
7 | --- git.orig/libc/sysdeps/linux/common/bits/socket.h 2012-01-26 23:23:21.537456132 -0800 | ||
8 | +++ git/libc/sysdeps/linux/common/bits/socket.h 2012-01-26 23:25:10.125461388 -0800 | ||
9 | @@ -235,8 +235,15 @@ | ||
10 | #define MSG_ERRQUEUE MSG_ERRQUEUE | ||
11 | MSG_NOSIGNAL = 0x4000, /* Do not generate SIGPIPE. */ | ||
12 | #define MSG_NOSIGNAL MSG_NOSIGNAL | ||
13 | - MSG_MORE = 0x8000 /* Sender will send more. */ | ||
14 | + MSG_MORE = 0x8000, /* Sender will send more. */ | ||
15 | #define MSG_MORE MSG_MORE | ||
16 | + MSG_WAITFORONE = 0x10000, /* Wait for at least one packet to return.*/ | ||
17 | +#define MSG_WAITFORONE MSG_WAITFORONE | ||
18 | + | ||
19 | + MSG_CMSG_CLOEXEC = 0x40000000 /* Set close_on_exit for file | ||
20 | + descriptor received through | ||
21 | + SCM_RIGHTS. */ | ||
22 | +#define MSG_CMSG_CLOEXEC MSG_CMSG_CLOEXEC | ||
23 | }; | ||
24 | |||
25 | |||