summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/0005-include-gshadow-only-if-ENABLE_GSHADOW-is-1.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0005-include-gshadow-only-if-ENABLE_GSHADOW-is-1.patch')
-rw-r--r--meta/recipes-core/systemd/systemd/0005-include-gshadow-only-if-ENABLE_GSHADOW-is-1.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0005-include-gshadow-only-if-ENABLE_GSHADOW-is-1.patch b/meta/recipes-core/systemd/systemd/0005-include-gshadow-only-if-ENABLE_GSHADOW-is-1.patch
new file mode 100644
index 0000000000..6d5faf5fed
--- /dev/null
+++ b/meta/recipes-core/systemd/systemd/0005-include-gshadow-only-if-ENABLE_GSHADOW-is-1.patch
@@ -0,0 +1,29 @@
1From a2c4d46944892174930135672508389a04e191f0 Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Fri, 29 Jun 2018 13:53:29 +0800
4Subject: [PATCH 05/19] include gshadow only if ENABLE_GSHADOW is 1
5
6Upstream-Status: Inappropriate [musl]
7
8Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
9---
10 src/basic/user-util.h | 2 ++
11 1 file changed, 2 insertions(+)
12
13diff --git a/src/basic/user-util.h b/src/basic/user-util.h
14index b74f16885..f9c1e29c4 100644
15--- a/src/basic/user-util.h
16+++ b/src/basic/user-util.h
17@@ -2,7 +2,9 @@
18 #pragma once
19
20 #include <grp.h>
21+#if ENABLE_GSHADOW
22 #include <gshadow.h>
23+#endif
24 #include <pwd.h>
25 #include <shadow.h>
26 #include <stdbool.h>
27--
282.11.0
29