diff options
Diffstat (limited to 'src/common/munix.c')
-rw-r--r-- | src/common/munix.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/common/munix.c b/src/common/munix.c index 132f397..f7dc6d0 100644 --- a/src/common/munix.c +++ b/src/common/munix.c @@ -29,12 +29,6 @@ char *relfile(char *prog, char *mod) { if (baseloc[0] == 0) { /* if argv[0] not already found */ - #if CYGWIN - char posix_prog[_POSIX_PATH_MAX + 1]; - cygwin_conv_to_posix_path(prog, posix_prog); - prog = posix_prog; - #endif /* CYGWIN */ - if (findexe(prog, baseloc, sizeof(baseloc)) == NULL) { fprintf(stderr, "cannot find location of %s\n", prog); exit(EXIT_FAILURE); @@ -102,14 +96,6 @@ char *findonpath(char *name, char *buf, size_t len) { if (path == NULL || *path == '\0') path = "."; - #if CYGWIN - else { - char *posix_path; - posix_path = alloca(cygwin_win32_to_posix_path_list_buf_size(path)); - cygwin_win32_to_posix_path_list(path, posix_path); - path = posix_path; - } - #endif /* CYGWIN */ end = path + strlen(path); for (next = path; next <= end; next = sep + 1) { |