This is the mail archive of the
cygwin
mailing list for the Cygwin project.
cannot build cygwin-2.0.2 because of net.cc (or because of some header.h)
- From: Denis Excoffier <cygwin at Denis-Excoffier dot org>
- To: The Cygwin Mailing List <cygwin at cygwin dot com>
- Date: Mon, 11 May 2015 17:52:04 +0200
- Subject: cannot build cygwin-2.0.2 because of net.cc (or because of some header.h)
- Authentication-results: sourceware.org; auth=none
Hello,
In order to successfully build cygwin-2.0.2-1 (for x86, both XP and W7) i had to apply
the following patch (below). No such problem with cygwin-2.0.1-1.
Regards,
Denis Excoffier
diff -uNr newlib-cygwin-o/winsup/cygwin/net.cc newlib-cygwin-p/winsup/cygwin/net.cc
--- newlib-cygwin-o/winsup/cygwin/net.cc 2015-05-08 23:51:08.000000000 +0200
+++ newlib-cygwin-p/winsup/cygwin/net.cc 2015-05-11 10:12:57.816299800 +0200
@@ -2444,7 +2444,7 @@
return -1;
}
-extern "C" unsigned
+extern "C" NET_IFINDEX
if_nametoindex (const char *name)
{
PIP_ADAPTER_ADDRESSES pa0 = NULL, pap;
@@ -2478,7 +2478,7 @@
}
extern "C" char *
-if_indextoname (unsigned ifindex, char *ifname)
+if_indextoname (NET_IFINDEX ifindex, char *ifname)
{
PIP_ADAPTER_ADDRESSES pa0 = NULL, pap;
char *name = NULL;
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple