aboutsummaryrefslogtreecommitdiff
path: root/lib/file.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-03-19 19:54:13 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-03-19 19:54:13 +0000
commitff3fd842d8338feb5277a0450991c882dd4d84b2 (patch)
tree4d5f3cdb72dec4a29d80ed521db99c00f491c56f /lib/file.c
parent35140201b5ad087e852444780eb8b322ee7749f0 (diff)
Marco G. Salvagno's OS/2 fixes
Diffstat (limited to 'lib/file.c')
-rw-r--r--lib/file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/file.c b/lib/file.c
index 99759f477..af966016b 100644
--- a/lib/file.c
+++ b/lib/file.c
@@ -118,10 +118,10 @@ UrgError file(struct UrlData *data, char *path, long *bytecountp)
int fd;
char *actual_path = curl_unescape(path);
-#ifdef WIN32
+#if defined(WIN32) || defined(__EMX__)
int i;
- /* change path separators from '/' to '\\' for Windows */
+ /* change path separators from '/' to '\\' for Windows and OS/2 */
for (i=0; actual_path[i] != '\0'; ++i)
if (actual_path[i] == '/')
actual_path[i] = '\\';