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>
12 ===================================================================
16 #include <linux/netlink.h>
17 #include <linux/rtnetlink.h>
19 +#ifndef MSG_CMSG_CLOEXEC
20 +#define MSG_CMSG_CLOEXEC 0x40000000
26 Index: b/kacpimon/libnetlink.h
27 ===================================================================
28 --- a/kacpimon/libnetlink.h
29 +++ b/kacpimon/libnetlink.h
31 #include <linux/netlink.h>
32 #include <linux/rtnetlink.h>
34 +#ifndef MSG_CMSG_CLOEXEC
35 +#define MSG_CMSG_CLOEXEC 0x40000000