summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-05-30 11:06:56 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-05-30 11:06:56 +0000
commit870bacd6897b62666aeaaa8b8b2c937529abac90 (patch)
tree99fb74e71f6a5f141bae5511bfb0ef969555560e
parentd9f39cc99b7e72cba957b6190913ca7fb5405e93 (diff)
downloadgnurl-870bacd6897b62666aeaaa8b8b2c937529abac90.tar.gz
gnurl-870bacd6897b62666aeaaa8b8b2c937529abac90.tar.bz2
gnurl-870bacd6897b62666aeaaa8b8b2c937529abac90.zip
include strtok.h to get the prototype
-rw-r--r--lib/cookie.c1
-rw-r--r--lib/netrc.c1
-rw-r--r--lib/strtok.h2
-rw-r--r--lib/url.c1
4 files changed, 5 insertions, 0 deletions
diff --git a/lib/cookie.c b/lib/cookie.c
index f15a3223e..2585639b5 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -86,6 +86,7 @@ Example set of cookies:
#include "cookie.h"
#include "getdate.h"
#include "strequal.h"
+#include "strtok.h"
/* The last #include file should be: */
#ifdef MALLOCDEBUG
diff --git a/lib/netrc.c b/lib/netrc.c
index b7ffc1b4a..b2dd35692 100644
--- a/lib/netrc.c
+++ b/lib/netrc.c
@@ -41,6 +41,7 @@
#include <curl/curl.h>
#include "strequal.h"
+#include "strtok.h"
/* The last #include file should be: */
#ifdef MALLOCDEBUG
diff --git a/lib/strtok.h b/lib/strtok.h
index 023b051c7..d7ecdf1d3 100644
--- a/lib/strtok.h
+++ b/lib/strtok.h
@@ -30,6 +30,8 @@
#ifndef HAVE_STRTOK_R
char *Curl_strtok_r(char *s, const char *delim, char **last);
#define strtok_r Curl_strtok_r
+#else
+extern char *strtok_r(char *s1, const char *s2, char **lasts);
#endif
#endif
diff --git a/lib/url.c b/lib/url.c
index 55d4463c8..c42e05e8b 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -91,6 +91,7 @@
#include "cookie.h"
#include "strequal.h"
#include "escape.h"
+#include "strtok.h"
/* And now for the protocols */
#include "ftp.h"