]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
include strtok.h to get the prototype
authorDaniel Stenberg <daniel@haxx.se>
Wed, 30 May 2001 11:06:56 +0000 (11:06 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 30 May 2001 11:06:56 +0000 (11:06 +0000)
lib/cookie.c
lib/netrc.c
lib/strtok.h
lib/url.c

index f15a3223e9d7b9e477e1581eb0c333df60de1371..2585639b54fa1db20b520a1b5b04391e42ef86ce 100644 (file)
@@ -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
index b7ffc1b4a52e97cf79f8fcef32c9ac44cfe247a0..b2dd35692c00e74d6380aa255d869544ca6ee175 100644 (file)
@@ -41,6 +41,7 @@
 #include <curl/curl.h>
 
 #include "strequal.h"
+#include "strtok.h"
 
 /* The last #include file should be: */
 #ifdef MALLOCDEBUG
index 023b051c7ce97a0ddf8f584586d773c5a0593858..d7ecdf1d37ea9c3228bdc708cced75c8c4798b04 100644 (file)
@@ -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
index 55d4463c8e3bb0f5df803931e8cc64facabf04e2..c42e05e8b23b76bb10cca8ec210eec2ecb9fa5bc 100644 (file)
--- 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"