This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] Cygwin: bindresvport: Guard prototypes with __MISC_VISIBLE
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 5 Feb 2018 20:07:25 -0000
- Subject: [newlib-cygwin] Cygwin: bindresvport: Guard prototypes with __MISC_VISIBLE
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=b08e6690a676b9b58abbb676c9e9233f6f2f5c54
commit b08e6690a676b9b58abbb676c9e9233f6f2f5c54
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Mon Feb 5 21:06:29 2018 +0100
Cygwin: bindresvport: Guard prototypes with __MISC_VISIBLE
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
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
};