aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-11-24 10:22:46 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-11-24 10:22:46 +0000
commit74e5beab9dbeb0e893754b8c21679527b5b7e178 (patch)
tree1fcd900435ec3ee95ba7ae0b0d0ed339ad1aacf1 /lib
parentb41765f4416b3bdd05694073ae58b8d5a003ec1b (diff)
Doug Kaufman's set of patches to make curl build fine on DJGPP again using
configure.
Diffstat (limited to 'lib')
-rw-r--r--lib/setup.h3
-rw-r--r--lib/transfer.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/setup.h b/lib/setup.h
index bebe4e85a..2c74f5118 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -200,6 +200,7 @@ typedef unsigned char bool;
#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)
+#define ioctl(x,y,z) ioctlsocket(x,y,(char *)(z))
#define IOCTL_3_ARGS
#include <tcp.h>
#ifdef word
@@ -229,7 +230,9 @@ typedef unsigned char bool;
#endif
#define DIR_CHAR "/"
+#ifndef DOT_CHAR
#define DOT_CHAR "."
+#endif
#ifdef DJGPP
#undef DOT_CHAR
diff --git a/lib/transfer.c b/lib/transfer.c
index 11a8f8463..f84594a9e 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -214,7 +214,7 @@ CURLcode Curl_readrewind(struct connectdata *conn)
if(data->set.ioctl) {
curlioerr err;
- err = data->set.ioctl(data, CURLIOCMD_RESTARTREAD,
+ err = (data->set.ioctl) (data, CURLIOCMD_RESTARTREAD,
data->set.ioctl_client);
infof(data, "the ioctl callback returned %d\n", (int)err);