diff options
author | Cedric BAIL <cedric.bail@samsung.com> | 2014-01-09 14:30:53 +0900 |
---|---|---|
committer | Cedric BAIL <cedric.bail@samsung.com> | 2014-01-09 14:30:53 +0900 |
commit | bd0d03fbcf467176d0169cf38a37aee5486d5f5a (patch) | |
tree | 4d639a577f49e44d0a3db1ef2aa9b826e54f68a5 /src/lib/ethumb/ethumb.c | |
parent | 313cd699f29f9fe754bc8513e57723bdb5ec0174 (diff) |
ethumb: fix build on windows by matching the #if around the if statement.
Diffstat (limited to 'src/lib/ethumb/ethumb.c')
-rw-r--r-- | src/lib/ethumb/ethumb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ethumb/ethumb.c b/src/lib/ethumb/ethumb.c index e3b3764d57..35163c1391 100644 --- a/src/lib/ethumb/ethumb.c +++ b/src/lib/ethumb/ethumb.c | |||
@@ -266,7 +266,7 @@ ethumb_init(void) | |||
266 | home = getenv("HOME"); | 266 | home = getenv("HOME"); |
267 | snprintf(buf, sizeof(buf), "%s/.thumbnails", home); | 267 | snprintf(buf, sizeof(buf), "%s/.thumbnails", home); |
268 | } | 268 | } |
269 | #if !defined(HAVE_GETUID) || defined(HAVE_GETEUID) | 269 | #if defined(HAVE_GETUID) && defined(HAVE_GETEUID) |
270 | else | 270 | else |
271 | { | 271 | { |
272 | struct passwd *pw = getpwent(); | 272 | struct passwd *pw = getpwent(); |
@@ -722,7 +722,7 @@ _ethumb_build_absolute_path(const char *path, char buf[PATH_MAX]) | |||
722 | strncpy(p, home, PATH_MAX - 1); | 722 | strncpy(p, home, PATH_MAX - 1); |
723 | p[PATH_MAX - 1] = 0; | 723 | p[PATH_MAX - 1] = 0; |
724 | } | 724 | } |
725 | #if !defined(HAVE_GETUID) || defined(HAVE_GETEUID) | 725 | #if defined(HAVE_GETUID) && defined(HAVE_GETEUID) |
726 | else | 726 | else |
727 | { | 727 | { |
728 | struct passwd *pw = getpwent(); | 728 | struct passwd *pw = getpwent(); |