From: Denis Excoffier <cygwin@Denis-Excoffier.org>
To: The Cygwin Mailing List <cygwin@cygwin.com>
Subject: cannot build cygwin-2.0.2 because of net.cc (or because of some header.h)
Date: Mon, 11 May 2015 18:07:00 -0000 [thread overview]
Message-ID: <B8FA2086-BAFE-4B3E-9D52-2BE106CB9360@Denis-Excoffier.org> (raw)
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
next reply other threads:[~2015-05-11 15:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-11 18:07 Denis Excoffier [this message]
2015-05-21 11:53 ` Takashi Yano
2015-05-22 11:07 ` Takashi Yano
2015-05-27 11:15 ` Corinna Vinschen
2015-05-27 11:48 ` Henry S. Thompson
2015-05-27 13:06 ` Corinna Vinschen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B8FA2086-BAFE-4B3E-9D52-2BE106CB9360@Denis-Excoffier.org \
--to=cygwin@denis-excoffier.org \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).