summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel@osg.samsung.com>2018-02-26 10:42:24 +0100
committerMarcel Hollerbach <marcel@osg.samsung.com>2018-02-26 12:21:56 +0100
commitae51034b8519f90ab871315f63171ca34fba5288 (patch)
tree9404b3f8faad2ff2a6129e231934ab1d4d240d88
parent530b7e14534087c8b4015c393956e5c9e950b7f4 (diff)
eina_vpath: include the config header
so the function detection macros are defined.
-rw-r--r--src/lib/eina/eina_vpath.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/eina/eina_vpath.c b/src/lib/eina/eina_vpath.c
index 9a31d74c58..f49a9e1f13 100644
--- a/src/lib/eina/eina_vpath.c
+++ b/src/lib/eina/eina_vpath.c
@@ -1,3 +1,10 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
5#include <sys/types.h>
6#include <pwd.h>
7
1#include <Eina.h> 8#include <Eina.h>
2 9
3#include "eina_internal.h" 10#include "eina_internal.h"
@@ -39,6 +46,9 @@ static char *
39_fallback_runtime_dir(const char *home) 46_fallback_runtime_dir(const char *home)
40{ 47{
41 char buf[PATH_MAX]; 48 char buf[PATH_MAX];
49#if defined(HAVE_GETUID)
50 uid_t uid = getuid();
51#endif
42 struct stat st; 52 struct stat st;
43 53
44#if defined(HAVE_GETUID) && defined(HAVE_GETEUID) 54#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)