summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/0004-src-basic-missing.h-check-for-missing-__compar_fn_t-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0004-src-basic-missing.h-check-for-missing-__compar_fn_t-.patch')
-rw-r--r--meta/recipes-core/systemd/systemd/0004-src-basic-missing.h-check-for-missing-__compar_fn_t-.patch47
1 files changed, 47 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0004-src-basic-missing.h-check-for-missing-__compar_fn_t-.patch b/meta/recipes-core/systemd/systemd/0004-src-basic-missing.h-check-for-missing-__compar_fn_t-.patch
new file mode 100644
index 0000000000..cb5ae99a46
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd/0004-src-basic-missing.h-check-for-missing-__compar_fn_t-.patch
@@ -0,0 +1,47 @@
1From c850b654e71677e0d6292f1345207b9b5acffc33 Mon Sep 17 00:00:00 2001
2From: Emil Renner Berthing <systemd@esmil.dk>
3Date: Mon, 23 Oct 2017 11:31:03 -0700
4Subject: [PATCH 04/12] src/basic/missing.h: check for missing __compar_fn_t
5 typedef
6
7include missing.h for missing __compar_fn_t
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11Upstream-Status: Pending
12
13 src/basic/missing.h | 5 +++++
14 src/basic/strbuf.c | 1 +
15 2 files changed, 6 insertions(+)
16
17diff --git a/src/basic/missing.h b/src/basic/missing.h
18index 8009888ad..671f341c6 100644
19--- a/src/basic/missing.h
20+++ b/src/basic/missing.h
21@@ -1063,6 +1063,11 @@ struct input_mask {
22 #define RENAME_NOREPLACE (1 << 0)
23 #endif
24
25+#ifndef __COMPAR_FN_T
26+#define __COMPAR_FN_T
27+typedef int (*__compar_fn_t)(const void *, const void *);
28+#endif
29+
30 #ifndef KCMP_FILE
31 #define KCMP_FILE 0
32 #endif
33diff --git a/src/basic/strbuf.c b/src/basic/strbuf.c
34index 00aaf9e62..9dc4a584a 100644
35--- a/src/basic/strbuf.c
36+++ b/src/basic/strbuf.c
37@@ -23,6 +23,7 @@
38
39 #include "alloc-util.h"
40 #include "strbuf.h"
41+#include "missing.h"
42
43 /*
44 * Strbuf stores given strings in a single continuous allocated memory
45--
462.14.2
47