diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0022-Use-if-instead-of-ifdef-for-ENABLE_GSHADOW.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0022-Use-if-instead-of-ifdef-for-ENABLE_GSHADOW.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0022-Use-if-instead-of-ifdef-for-ENABLE_GSHADOW.patch b/meta/recipes-core/systemd/systemd/0022-Use-if-instead-of-ifdef-for-ENABLE_GSHADOW.patch new file mode 100644 index 0000000000..a9c1c9cfe5 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0022-Use-if-instead-of-ifdef-for-ENABLE_GSHADOW.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 4f07ffa8f5ab85011422bb7114f1cddf49d4923d Mon Sep 17 00:00:00 2001 | ||
2 | From: ChenQi1989 <40684930+ChenQi1989@users.noreply.github.com> | ||
3 | Date: Fri, 29 Jun 2018 06:54:07 +0000 | ||
4 | Subject: Use #if instead of #ifdef for ENABLE_GSHADOW | ||
5 | |||
6 | ENABLE_GSHADOW is defined to be 0 or 1. So #if should be used instead of #ifdef. | ||
7 | |||
8 | Upstream-Status: Backport [https://github.com/systemd/systemd/commit/4f07ffa8f5ab85011422bb7114f1cddf49d4923d] | ||
9 | --- | ||
10 | src/basic/user-util.h | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/src/basic/user-util.h b/src/basic/user-util.h | ||
14 | index b74f16885..b2f198c89 100644 | ||
15 | --- a/src/basic/user-util.h | ||
16 | +++ b/src/basic/user-util.h | ||
17 | @@ -102,7 +102,7 @@ int fgetgrent_sane(FILE *stream, struct group **gr); | ||
18 | int putpwent_sane(const struct passwd *pw, FILE *stream); | ||
19 | int putspent_sane(const struct spwd *sp, FILE *stream); | ||
20 | int putgrent_sane(const struct group *gr, FILE *stream); | ||
21 | -#ifdef ENABLE_GSHADOW | ||
22 | +#if ENABLE_GSHADOW | ||
23 | int fgetsgent_sane(FILE *stream, struct sgrp **sg); | ||
24 | int putsgent_sane(const struct sgrp *sg, FILE *stream); | ||
25 | #endif | ||
26 | -- | ||
27 | 2.18.1 | ||
28 | |||