https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=b08e6690a676b9b58abbb676c9e9233f6f2f5c54
commit b08e6690a676b9b58abbb676c9e9233f6f2f5c54 Author: Corinna Vinschen <[email protected]> Date: Mon Feb 5 21:06:29 2018 +0100 Cygwin: bindresvport: Guard prototypes with __MISC_VISIBLE Signed-off-by: Corinna Vinschen <[email protected]> Diff: --- winsup/cygwin/include/netinet/in.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/winsup/cygwin/include/netinet/in.h b/winsup/cygwin/include/netinet/in.h index da0265b..862e456 100644 --- a/winsup/cygwin/include/netinet/in.h +++ b/winsup/cygwin/include/netinet/in.h @@ -16,8 +16,10 @@ extern "C" { #endif +#if __MISC_VISIBLE extern int bindresvport (int, struct sockaddr_in *); extern int bindresvport_sa (int, struct sockaddr *); +#endif #ifdef __cplusplus };
