diff options
Diffstat (limited to 'src/lib-popt/findme.c')
-rw-r--r-- | src/lib-popt/findme.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib-popt/findme.c b/src/lib-popt/findme.c index bcbe1941..a465a051 100644 --- a/src/lib-popt/findme.c +++ b/src/lib-popt/findme.c @@ -39,8 +39,10 @@ char * findProgramPath(char * argv0) { *chptr = '\0'; sprintf(buf, "%s/%s", start, argv0); +#ifndef WIN32 if (!access(buf, X_OK)) return buf; +#endif if (chptr) start = chptr + 1; |