aboutsummaryrefslogtreecommitdiff
path: root/lib/setup.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-05-21 08:08:48 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-05-21 08:08:48 +0000
commitd5043133e63290e0abedc34ddd1889bbd4bb953e (patch)
tree50ff25c5d923a49b999cd078bdfae19439b4d1a6 /lib/setup.h
parent509f69a45769bf3fa3ae6d08daeab944b051beb4 (diff)
Gisle Vanem made curl build with djgpp on DOS.
Diffstat (limited to 'lib/setup.h')
-rw-r--r--lib/setup.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/setup.h b/lib/setup.h
index a1eb9392f..0a109111f 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -135,20 +135,33 @@ defined(HAVE_LIBSSL) && defined(HAVE_LIBCRYPTO)
#define HAVE_ALARM
#endif
-#define PATH_CHAR ";"
#define DIR_CHAR "\\"
#define DOT_CHAR "_"
#else
+
+#ifdef DJGPP
+#define sclose(x) close_s(x)
+#define sread(x,y,z) read_s(x,y,z)
+#define swrite(x,y,z) write_s(x,y,z)
+#define select(n,r,w,x,t) select_s(n,r,w,x,t)
+#else
+
#define sclose(x) close(x)
#define sread(x,y,z) recv(x,y,z,0)
#define swrite(x,y,z) send(x,y,z,0)
#define HAVE_ALARM
-#define PATH_CHAR ":"
+#endif
+
#define DIR_CHAR "/"
#define DOT_CHAR "."
+#ifdef DJGPP
+#undef DOT_CHAR
+#define DOT_CHAR "_"
+#endif
+
#ifdef HAVE_STRCASECMP
/* this is for "-ansi -Wall -pedantic" to stop complaining! */
extern int (strcasecmp)(const char *s1, const char *s2);