This is the mail archive of the
cygwin
mailing list for the Cygwin project.
No prototype for sockatmark
- From: Ken Brown <kbrown at cornell dot edu>
- To: cygwin <cygwin at cygwin dot com>
- Date: Mon, 23 Feb 2015 18:06:10 -0500
- Subject: No prototype for sockatmark
- Authentication-results: sourceware.org; auth=none
sockatmark was added to Cygwin recently, but its prototype wasn't added to /usr/include/sys/socket.h. Is the following the right way to fix this, or is it a newlib issue?
Index: winsup/cygwin/include/sys/socket.h
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/include/sys/socket.h,v
retrieving revision 1.12
diff -u -p -r1.12 socket.h
--- winsup/cygwin/include/sys/socket.h 31 May 2013 18:08:25 -0000 1.12
+++ winsup/cygwin/include/sys/socket.h 23 Feb 2015 23:03:12 -0000
@@ -43,6 +43,7 @@ extern "C"
socklen_t *__optlen);
int shutdown (int, int);
int socket (int __family, int __type, int __protocol);
+ int sockatmark (int __fd);
int socketpair (int __domain, int __type, int __protocol, int *__socket_vec);
struct servent *getservbyname (const char *__name, const char *__proto);
Ken
--
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