Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Wed, 17 Apr 2002 16:11:50 +0200
From: "Gerrit P. Haase" <freeweb@nyckelpiga.de>
Reply-To: "Gerrit P. Haase" <freeweb@nyckelpiga.de>
Organization: Esse keine toten Tiere
X-Priority: 3 (Normal)
Message-ID: <8455925626.20020417161150@familiehaase.de>
To: cygwin@cygwin.com
CC: Stipe Tolj <tolj@wapme-systems.de>
Subject: Apache with CYGWIN_WINSOCK bug
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hallo cygwin,

from <cygwin/os.h>
/*
 * Define winsock.h and winsock2.h stuff taken from Win32 API in case we  
 * want to do socket communication in Win32 native way rather then using 
 * Cygwin's POSIX wrapper to the native ones. These are needed for 
 * main/buff.c and main/http_main.c. They are linked against libwsock32.a 
 * for the import declarations of the corresponding Win32 native DLLs. 
 */ 
#ifdef CYGWIN_WINSOCK 
#define WSAEWOULDBLOCK (10035) 
#define SOCKET_ERROR (-1) 
 
#define WIN32API_IMPORT(type)  __declspec(dllimport) type __stdcall 
 
WIN32API_IMPORT(int) WSAGetLastError(void); 
WIN32API_IMPORT(int) WSASetLastError(int); 
WIN32API_IMPORT(int) ioctlsocket(unsigned int, long, unsigned long *); 
WIN32API_IMPORT(void) Sleep(unsigned int); 
#endif /* CYGWIN_WINSOCK */    <-----------LINE 108

I'm getting this error several times during compilation with
CYGWIN_WINSOCK defined:

  In file included from ../../include/ap_config.h:1132,
                   from mod_ssl.h:130,
                   from ssl_engine_config.c:65:
  /usr/include/sys/ioctl.h:26: conflicting types for `ioctl'
  ../../os/cygwin/os.h:106: previous declaration of `ioctl'


Gerrit
-- 
$ make signature
make: *** No rule to make target `signature'.  Stop.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

