forked from enlightenment/efl
ethumb: fix build on windows by matching the #if around the if statement.
This commit is contained in:
parent
313cd699f2
commit
bd0d03fbcf
|
@ -266,7 +266,7 @@ ethumb_init(void)
|
||||||
home = getenv("HOME");
|
home = getenv("HOME");
|
||||||
snprintf(buf, sizeof(buf), "%s/.thumbnails", home);
|
snprintf(buf, sizeof(buf), "%s/.thumbnails", home);
|
||||||
}
|
}
|
||||||
#if !defined(HAVE_GETUID) || defined(HAVE_GETEUID)
|
#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
struct passwd *pw = getpwent();
|
struct passwd *pw = getpwent();
|
||||||
|
@ -722,7 +722,7 @@ _ethumb_build_absolute_path(const char *path, char buf[PATH_MAX])
|
||||||
strncpy(p, home, PATH_MAX - 1);
|
strncpy(p, home, PATH_MAX - 1);
|
||||||
p[PATH_MAX - 1] = 0;
|
p[PATH_MAX - 1] = 0;
|
||||||
}
|
}
|
||||||
#if !defined(HAVE_GETUID) || defined(HAVE_GETEUID)
|
#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
struct passwd *pw = getpwent();
|
struct passwd *pw = getpwent();
|
||||||
|
|
Loading…
Reference in New Issue