summaryrefslogtreecommitdiff
path: root/package/acpid
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-04-25 10:29:26 +0200
committerPeter Korsgaard <peter@korsgaard.com>2014-04-25 10:58:53 +0200
commit909382c3572d083850d531490f4333c219dc5256 (patch)
treedca00f2ac67c8e19d7d2b332678e6d5e8dc3b3ba /package/acpid
parent201e133d4a9c4ff8ecea47cb6c442c6a8aa56a2d (diff)
acpid: add patch to fix build failure with external uClibc toolchains
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/acpid')
-rw-r--r--package/acpid/acpid-02-add-missing-defines.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/package/acpid/acpid-02-add-missing-defines.patch b/package/acpid/acpid-02-add-missing-defines.patch
new file mode 100644
index 000000000..a85315911
--- /dev/null
+++ b/package/acpid/acpid-02-add-missing-defines.patch
@@ -0,0 +1,40 @@
+Add missing MSG_CMSG_CLOEXEC
+
+Unpatched uClibc toolchains, even using the latest 0.9.33.2, do not
+have the MSG_CMSG_CLOEXEC definition. Even though the Buildroot
+internal toolchain backend has a uClibc patch to provide it, it
+doesn't apply to external toolchains. This patch provides the
+definition of MSG_CMSG_CLOEXEC.
+
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+Index: b/libnetlink.h
+===================================================================
+--- a/libnetlink.h
++++ b/libnetlink.h
+@@ -7,6 +7,10 @@
+ #include <linux/netlink.h>
+ #include <linux/rtnetlink.h>
+
++#ifndef MSG_CMSG_CLOEXEC
++#define MSG_CMSG_CLOEXEC 0x40000000
++#endif
++
+ struct rtnl_handle
+ {
+ int fd;
+Index: b/kacpimon/libnetlink.h
+===================================================================
+--- a/kacpimon/libnetlink.h
++++ b/kacpimon/libnetlink.h
+@@ -7,6 +7,10 @@
+ #include <linux/netlink.h>
+ #include <linux/rtnetlink.h>
+
++#ifndef MSG_CMSG_CLOEXEC
++#define MSG_CMSG_CLOEXEC 0x40000000
++#endif
++
+ struct rtnl_handle
+ {
+ int fd;