summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/0031-fix-missing-ULONG_LONG_MAX-definition-in-case-of-mus.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0031-fix-missing-ULONG_LONG_MAX-definition-in-case-of-mus.patch')
-rw-r--r--meta/recipes-core/systemd/systemd/0031-fix-missing-ULONG_LONG_MAX-definition-in-case-of-mus.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0031-fix-missing-ULONG_LONG_MAX-definition-in-case-of-mus.patch b/meta/recipes-core/systemd/systemd/0031-fix-missing-ULONG_LONG_MAX-definition-in-case-of-mus.patch
new file mode 100644
index 0000000000..319c4b65fc
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd/0031-fix-missing-ULONG_LONG_MAX-definition-in-case-of-mus.patch
@@ -0,0 +1,30 @@
1From adcd7e426fcd80e754274a730221d1a1f49dbc21 Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Tue, 27 Feb 2018 14:01:30 +0800
4Subject: [PATCH 31/31] fix missing ULONG_LONG_MAX definition in case of musl
5
6Upstream-Status: Pending
7
8Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
9---
10 src/basic/missing.h | 4 ++++
11 1 file changed, 4 insertions(+)
12
13diff --git a/src/basic/missing.h b/src/basic/missing.h
14index 5b9fde692..a922f1346 100644
15--- a/src/basic/missing.h
16+++ b/src/basic/missing.h
17@@ -72,6 +72,10 @@ struct sockaddr_vm {
18 };
19 #endif /* !HAVE_LINUX_VM_SOCKETS_H */
20
21+#ifndef ULONG_LONG_MAX
22+#define ULONG_LONG_MAX ULLONG_MAX
23+#endif
24+
25 #ifndef RLIMIT_RTTIME
26 #define RLIMIT_RTTIME 15
27 #endif
28--
292.13.0
30