bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ae51034b8519f90ab871315f63171ca34fba5288

commit ae51034b8519f90ab871315f63171ca34fba5288
Author: Marcel Hollerbach <[email protected]>
Date:   Mon Feb 26 10:42:24 2018 +0100

    eina_vpath: include the config header
    
    so the function detection macros are defined.
---
 src/lib/eina/eina_vpath.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

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)

-- 


Reply via email to