History of Changes
Daniel (24 January 2001)
+- Ingo Ralf Blum submitted a series of patches required to get curl to compile
+ properly with cygwin.
+
- Robert Weaver posted a fix for the win32 section of the curl_getenv() code
that corrected a potential memory leak.
#include <unistd.h>
#endif
-#if ! defined(WIN32) && ! defined(__BEOS__)
+#if ! defined(WIN32) && ! defined(__BEOS__) && !defined(__CYGWIN32__)
#ifdef NEED_REENTRANT
#define _REENTRANT
return CURLE_OK;
}
-#ifndef WIN32
+#if !defined(WIN32)||defined(__CYGWIN32__)
#ifndef RETSIGTYPE
#define RETSIGTYPE void
#endif
conn->serv_addr.sin_family = conn->hp->h_addrtype;
conn->serv_addr.sin_port = htons(data->port);
-#ifndef WIN32
+#if !defined(WIN32)||defined(__CYGWIN32__)
/* We don't generally like checking for OS-versions, we should make this
HAVE_XXXX based, although at the moment I don't have a decent test for
this! */
/* This is now designed to have its own local setup.h */
#include "setup.h"
-#ifdef WIN32
+#if defined(WIN32)&&!defined(__CYGWIN32__)
#include <winsock.h>
#endif
if(!config->errors)
config->errors = stderr;
-#ifdef WIN32
+#if defined(WIN32) && !defined(__CYGWIN32__)
if(!outfile && !(config->conf & CONF_GETTEXT)) {
/* We get the output to stdout and we have not got the ASCII/text flag,
then set stdout to be binary */