chiark / gitweb /
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)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:12:58 +0000 (10:12 +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 006a73e..8862626 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"