diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-11-02 10:12:22 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-11-02 10:12:22 +0000 |
commit | 24d47a6e07304cf0921f2d30734b3c64360773c3 (patch) | |
tree | 03bae425fc10d6c083e866a3e1ab5bf620dffe42 /lib/easy.c | |
parent | 8a66584db4ab3bd1668a685785da7108f7550e95 (diff) |
Paul Nolan fix to make libcurl build nicely on Windows CE
Diffstat (limited to 'lib/easy.c')
-rw-r--r-- | lib/easy.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/easy.c b/lib/easy.c index 228d2aef0..7a8278dd8 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -29,8 +29,12 @@ #include <stdarg.h> #include <stdlib.h> #include <ctype.h> +#ifdef HAVE_SYS_TYPES_H #include <sys/types.h> +#endif +#ifdef HAVE_SYS_STAT_H #include <sys/stat.h> +#endif #include <errno.h> @@ -168,6 +172,11 @@ static long init_flags = 0; * If a memory-using function (like curl_getenv) is used before * curl_global_init() is called, we need to have these pointers set already. */ + +#ifdef _WIN32_WCE +#define strdup _strdup +#endif + curl_malloc_callback Curl_cmalloc = (curl_malloc_callback)malloc; curl_free_callback Curl_cfree = (curl_free_callback)free; curl_realloc_callback Curl_crealloc = (curl_realloc_callback)realloc; |