diff options
author | Yang Tse <yangsita@gmail.com> | 2009-10-27 16:38:42 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-10-27 16:38:42 +0000 |
commit | b2f430898053258622eebee3328f03441367a32c (patch) | |
tree | 5edb80da68f40d6f5fda70da1fa73c907cc0f4e9 /lib/setup.h | |
parent | 6a37135f4d56e89a85db50a38b800fd49eeafe3a (diff) | |
download | curl-b2f430898053258622eebee3328f03441367a32c.tar.gz |
Fix Pelles C Win32 target compilation issues
Diffstat (limited to 'lib/setup.h')
-rw-r--r-- | lib/setup.h | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/lib/setup.h b/lib/setup.h index 7efc6104c..5f0de9050 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -255,19 +255,10 @@ #include <curl/stdcheaders.h> #endif -/* - * PellesC kludge section (yikes); - * - It has 'ssize_t', but it is in <unistd.h>. The way the headers - * on Win32 are included, forces me to include this header here. - * - sys_nerr, EINTR is missing in v4.0 or older. - */ #ifdef __POCC__ - #include <sys/types.h> - #include <unistd.h> - #if (__POCC__ <= 400) - #define sys_nerr EILSEQ /* for strerror.c */ - #define EINTR -1 /* for select.c */ - #endif +# include <sys/types.h> +# include <unistd.h> +# define sys_nerr EILSEQ #endif /* @@ -427,7 +418,7 @@ * are available if PSDK is properly installed. */ -#ifdef _MSC_VER +#if defined(_MSC_VER) && !defined(__POCC__) # if !defined(HAVE_WINSOCK2_H) || ((_MSC_VER < 1300) && !defined(IPPROTO_ESP)) # undef HAVE_STRUCT_SOCKADDR_STORAGE # endif @@ -438,7 +429,7 @@ * defined in ws2tcpip.h as well as to provide IPv6 support. */ -#ifdef _MSC_VER +#if defined(_MSC_VER) && !defined(__POCC__) # if !defined(HAVE_WS2TCPIP_H) || ((_MSC_VER < 1300) && !defined(INET6_ADDRSTRLEN)) # undef HAVE_FREEADDRINFO # undef HAVE_GETADDRINFO |