cmake: bump version to 3.6.3
[buildroot-gz.git] / package / acpid / 0002-add-missing-defines.patch
bloba85315911f3bce617ce0db16125bdfbe1b28de25
1 Add missing MSG_CMSG_CLOEXEC
3 Unpatched uClibc toolchains, even using the latest 0.9.33.2, do not
4 have the MSG_CMSG_CLOEXEC definition. Even though the Buildroot
5 internal toolchain backend has a uClibc patch to provide it, it
6 doesn't apply to external toolchains. This patch provides the
7 definition of MSG_CMSG_CLOEXEC.
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11 Index: b/libnetlink.h
12 ===================================================================
13 --- a/libnetlink.h
14 +++ b/libnetlink.h
15 @@ -7,6 +7,10 @@
16 #include <linux/netlink.h>
17 #include <linux/rtnetlink.h>
19 +#ifndef MSG_CMSG_CLOEXEC
20 +#define MSG_CMSG_CLOEXEC 0x40000000
21 +#endif
23 struct rtnl_handle
25 int fd;
26 Index: b/kacpimon/libnetlink.h
27 ===================================================================
28 --- a/kacpimon/libnetlink.h
29 +++ b/kacpimon/libnetlink.h
30 @@ -7,6 +7,10 @@
31 #include <linux/netlink.h>
32 #include <linux/rtnetlink.h>
34 +#ifndef MSG_CMSG_CLOEXEC
35 +#define MSG_CMSG_CLOEXEC 0x40000000
36 +#endif
38 struct rtnl_handle
40 int fd;