Hi,

at one point I added a #ifndef __INSIDE_CYGWIN__ to winsock2.h to
guard the declaration of gethostname.  That was wrong.  The below
patch fixes that.

Ok to apply?


Thanks,
Corinna


        * winsock2.h (gethostname): Drop __INSIDE_CYGWIN__ guard.


Index: winsock2.h
===================================================================
--- winsock2.h  (revision 5167)
+++ winsock2.h  (working copy)
@@ -986,9 +986,7 @@
   WINSOCK_API_LINKAGE SOCKET WSAAPI socket(int af,int type,int protocol);
   WINSOCK_API_LINKAGE struct hostent *WSAAPI gethostbyaddr(const char 
*addr,int len,int type);
   WINSOCK_API_LINKAGE struct hostent *WSAAPI gethostbyname(const char *name);
-#ifndef __INSIDE_CYGWIN__
   WINSOCK_API_LINKAGE int WSAAPI gethostname(char *name,int namelen);
-#endif /* !__INSIDE_CYGWIN__ */
   WINSOCK_API_LINKAGE struct servent *WSAAPI getservbyport(int port,const char 
*proto);
   WINSOCK_API_LINKAGE struct servent *WSAAPI getservbyname(const char 
*name,const char *proto);
   WINSOCK_API_LINKAGE struct protoent *WSAAPI getprotobynumber(int number);

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to