basic: user-utils.c needs missing.h for secure_getenv (#3059)
authormichaelolbrich <m.olbrich@pengutronix.de>
Mon, 18 Apr 2016 13:28:00 +0000 (15:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 18 Apr 2016 13:28:00 +0000 (15:28 +0200)
Otherwise building may fail with:

src/basic/user-util.c: In function 'get_home_dir':
src/basic/user-util.c:343:9: error: implicit declaration of function 'secure_getenv' [-Werror=implicit-function-declaration]

src/basic/user-util.c

index 19155bc..f65ca3e 100644 (file)
@@ -30,6 +30,7 @@
 #include <sys/stat.h>
 #include <unistd.h>
 
+#include "missing.h"
 #include "alloc-util.h"
 #include "fd-util.h"
 #include "formats-util.h"