]> code.ossystems Code Review - openembedded-core.git/commit
pam_systemd: Include missing.h for secure_getenv
authorKhem Raj <raj.khem@gmail.com>
Sat, 20 Jul 2019 18:00:55 +0000 (11:00 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 Jul 2019 21:13:37 +0000 (22:13 +0100)
commit6cdcb1488a84da6c15145944c2aab3c604252699
tree3d96de591265a77d95570de52da9affb22070295
parent6b603924e50a5694421b9142494315799422928d
pam_systemd: Include missing.h for secure_getenv

'secure_getenv' api is not uniformly implemented across all C libraries
therefore its good to include missing.h so it can use the alternative
implementation where its not awvailable

Fixes
../git/src/login/pam_systemd.c:344:13: error: implicit declaration of function 'secure_getenv' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        v = secure_getenv(key);

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd/0005-src-basic-missing.h-check-for-missing-strndupa.patch