The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / acpid / 0002-add-missing-defines.patch
1 Add missing MSG_CMSG_CLOEXEC
2
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.
8
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10
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>
18  
19 +#ifndef MSG_CMSG_CLOEXEC
20 +#define MSG_CMSG_CLOEXEC 0x40000000
21 +#endif
22 +
23  struct rtnl_handle
24  {
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>
33  
34 +#ifndef MSG_CMSG_CLOEXEC
35 +#define MSG_CMSG_CLOEXEC 0x40000000
36 +#endif
37 +
38  struct rtnl_handle
39  {
40         int                     fd;