diff options
author | Nils Durner <durner@gnunet.org> | 2006-12-21 15:37:21 +0000 |
---|---|---|
committer | Nils Durner <durner@gnunet.org> | 2006-12-21 15:37:21 +0000 |
commit | f118b9b960893d245ae85ccf5f91f9740515f9d1 (patch) | |
tree | 27f3e7ec7c35622cb0c7e7066cca1bb411edd2f9 | |
parent | 6434b07ae47a0e441be76fcc990b4d8268b08f18 (diff) | |
download | gnunet-gtk-f118b9b960893d245ae85ccf5f91f9740515f9d1.tar.gz gnunet-gtk-f118b9b960893d245ae85ccf5f91f9740515f9d1.zip |
fix Win
-rw-r--r-- | src/plugins/daemon/daemon.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/daemon/daemon.c b/src/plugins/daemon/daemon.c index 2068d2dc..252f6fdd 100644 --- a/src/plugins/daemon/daemon.c +++ b/src/plugins/daemon/daemon.c | |||
@@ -175,6 +175,7 @@ static void * doUpdateMenus(void * arg) { | |||
175 | "", | 175 | "", |
176 | &user); | 176 | &user); |
177 | if (strlen(user) > 0) { | 177 | if (strlen(user) > 0) { |
178 | #ifndef WINDOWS | ||
178 | if (NULL == (pws = getpwnam(user))) { | 179 | if (NULL == (pws = getpwnam(user))) { |
179 | canStart = 0; | 180 | canStart = 0; |
180 | } else { | 181 | } else { |
@@ -183,6 +184,9 @@ static void * doUpdateMenus(void * arg) { | |||
183 | else | 184 | else |
184 | canStart = 1; | 185 | canStart = 1; |
185 | } | 186 | } |
187 | #else | ||
188 | canStart = 1; | ||
189 | #endif | ||
186 | } | 190 | } |
187 | FREE(user); | 191 | FREE(user); |
188 | GC_free(dcfg); | 192 | GC_free(dcfg); |