From 326c7eee335047f86d738cf9ee9bba9ba1a2a162 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Wed, 22 Jul 2015 16:30:19 +0200 Subject: [PATCH] Elm_Config: fix compilation when getuid() or geteuid() are not available @fix --- legacy/elementary/src/lib/elm_config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/legacy/elementary/src/lib/elm_config.c b/legacy/elementary/src/lib/elm_config.c index b389ce7c4d..2e5b086ade 100644 --- a/legacy/elementary/src/lib/elm_config.c +++ b/legacy/elementary/src/lib/elm_config.c @@ -571,8 +571,9 @@ _elm_config_user_dir_snprintf(char *dst, #endif } } -#if !defined(HAVE_GETUID) || !defined(HAVE_GETEUID) +#if defined(HAVE_GETUID) && defined(HAVE_GETEUID) else +#else { # if HAVE_GETPWENT struct passwd *pw = getpwent();