diff options
author | Marcel Hollerbach <marcel@osg.samsung.com> | 2018-02-26 10:42:24 +0100 |
---|---|---|
committer | Marcel Hollerbach <marcel@osg.samsung.com> | 2018-02-26 12:21:56 +0100 |
commit | ae51034b8519f90ab871315f63171ca34fba5288 (patch) | |
tree | 9404b3f8faad2ff2a6129e231934ab1d4d240d88 | |
parent | 530b7e14534087c8b4015c393956e5c9e950b7f4 (diff) | |
download | efl-ae51034b8519f90ab871315f63171ca34fba5288.tar.gz |
eina_vpath: include the config header
so the function detection macros are defined.
-rw-r--r-- | src/lib/eina/eina_vpath.c | 10 |
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 @@ +#ifdef HAVE_CONFIG_H +# include <config.h> +#endif + +#include <sys/types.h> +#include <pwd.h> + #include <Eina.h> #include "eina_internal.h" @@ -39,6 +46,9 @@ static char * _fallback_runtime_dir(const char *home) { char buf[PATH_MAX]; +#if defined(HAVE_GETUID) + uid_t uid = getuid(); +#endif struct stat st; #if defined(HAVE_GETUID) && defined(HAVE_GETEUID) |