ethumb: fix build on windows by matching the #if around the if statement.

This commit is contained in:
Cedric BAIL 2014-01-09 14:30:53 +09:00
parent 313cd699f2
commit bd0d03fbcf
1 changed files with 2 additions and 2 deletions

View File

@ -266,7 +266,7 @@ ethumb_init(void)
home = getenv("HOME");
snprintf(buf, sizeof(buf), "%s/.thumbnails", home);
}
#if !defined(HAVE_GETUID) || defined(HAVE_GETEUID)
#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
else
{
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);
p[PATH_MAX - 1] = 0;
}
#if !defined(HAVE_GETUID) || defined(HAVE_GETEUID)
#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
else
{
struct passwd *pw = getpwent();