summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGisle Vanem <gisle.vanem@gmail.com>2018-01-24 15:02:53 +0100
committerGitHub <noreply@github.com>2018-01-24 15:02:53 +0100
commit494f02e08a0dbc14c66537038c34ef6cefec9b66 (patch)
tree930be4468295c5d44536f7fbb73edd153008b5df
parentfdaa8257ad9b790b304b053fa6aec853859ff8b8 (diff)
downloadcurl-494f02e08a0dbc14c66537038c34ef6cefec9b66.tar.gz
Fixes for MSDOS etc.
djgpp do have 'mkdir(dir, mode)'. Other DOS-compilers does not But djgpp seems the only choice for MSDOS anyway. PellesC do have a 'F_OK' defined in it's <unistd.h>. Update year in Copyright.
-rw-r--r--src/tool_dirhie.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tool_dirhie.c b/src/tool_dirhie.c
index 1d7359205..a01f9dc5f 100644
--- a/src/tool_dirhie.c
+++ b/src/tool_dirhie.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -41,9 +41,9 @@
# endif
#endif
-#ifdef WIN32
+#if defined(WIN32) || (defined(MSDOS) && !defined(__DJGPP__))
# define mkdir(x,y) (mkdir)((x))
-# ifndef __POCC__
+# ifndef F_OK
# define F_OK 0
# endif
#endif
@@ -91,7 +91,7 @@ static void show_dir_errno(FILE *errors, const char *name)
* should create all the dir* automagically
*/
-#ifdef WIN32
+#if defined(WIN32) || defined(__DJGPP__)
/* systems that may use either or when specifying a path */
#define PATH_DELIMITERS "\\/"
#else