• 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/0003-support-for-non-glibc-libcs.patch
Brendan HeadingBrendan Heading committed 1b53609f99328 Jul 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
+   set to EINTR. This macro is present on glibc/uclibc but may not be in other cases.  */
 
1
From a3dac1c3cee169e52c7d644dd565235a1cd833e3 Mon Sep 17 00:00:00 2001
2
From: Brendan Heading <brendanheading@gmail.com>
3
Date: Wed, 22 Jul 2015 23:10:11 +0100
4
Subject: [PATCH] support for non-glibc libcs
5
​
6
Added a TEMP_FAILURE_RETRY macro. This is a glibcism provided by
7
glibc and uclibc, but missing from musl (& possibly other libcs).
8
​
9
Upstream-status: submitted (see https://sourceforge.net/p/acpid2/tickets/7/)
10
---
11
 acpi_listen.c         |  2 ++
12
 acpid.c               |  1 +
13
 event.c               |  2 ++
14
 input_layer.c         |  1 +
15
 kacpimon/libnetlink.h |  2 ++
16
 libc_compat.h         | 40 ++++++++++++++++++++++++++++++++++++++++
17
 libnetlink.c          |  2 ++
18
 netlink.c             |  1 +
19
 proc.c                |  1 +
20
 ud_socket.c           |  1 +
21
 10 files changed, 53 insertions(+)
22
 create mode 100644 libc_compat.h
23
​
24
diff --git a/acpi_listen.c b/acpi_listen.c
25
index d0bc175..839e4f9 100644
26
--- a/acpi_listen.c
27
+++ b/acpi_listen.c
28
@@ -39,6 +39,8 @@
29
 #include "acpid.h"
30
 #include "ud_socket.h"
31
 
32
+#include "libc_compat.h"
33
+
34
 static int handle_cmdline(int *argc, char ***argv);
35
 static char *read_line(int fd);
36
 
37
diff --git a/acpid.c b/acpid.c
38
index 23f1e58..8555c82 100644
39
--- a/acpid.c
40
+++ b/acpid.c
41
@@ -41,6 +41,7 @@
42
 #include "input_layer.h"
43
 #include "inotify_handler.h"
44
 #include "netlink.h"
45
+#include "libc_compat.h"
46
 
47
 static int handle_cmdline(int *argc, char ***argv);
48
 static void close_fds(void);
49
diff --git a/event.c b/event.c
50
index 324078f..3b069a2 100644
51
--- a/event.c
52
+++ b/event.c
53
@@ -39,6 +39,8 @@
54
 #include "log.h"
55
 #include "sock.h"
56
 #include "ud_socket.h"
57
+#include "libc_compat.h"
58
+
59
 #include "event.h"
60
 /*
61
  * What is a rule?  It's polymorphic, pretty much.
62
diff --git a/input_layer.c b/input_layer.c
63
index 9aa19c6..cbf8085 100644
64
--- a/input_layer.c
65
+++ b/input_layer.c
66
@@ -42,6 +42,7 @@
67
 #include "log.h"
68
 #include "connection_list.h"
69
 #include "event.h"
70
+#include "libc_compat.h"
71
 
72
 #include "input_layer.h"
73
 
74
diff --git a/kacpimon/libnetlink.h b/kacpimon/libnetlink.h
75
index 6185cbc..0c61896 100644
76
--- a/kacpimon/libnetlink.h
77
+++ b/kacpimon/libnetlink.h
78
@@ -7,6 +7,8 @@
79
 #include <linux/netlink.h>
80
 #include <linux/rtnetlink.h>
81
 
82
+#include "libc_compat.h"
83
+
84
 struct rtnl_handle
85
 {
86
    int         fd;
87
diff --git a/libc_compat.h b/libc_compat.h
88
new file mode 100644
89
index 0000000..39f2336
90
--- /dev/null
91
+++ b/libc_compat.h
92
@@ -0,0 +1,40 @@
  • 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.