• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/acpid/0002-add-missing-defines.patch
Peter KorsgaardPeter Korsgaard committed 298cd8eaa2103 Feb 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
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;
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.