X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:content-type:content-transfer-encoding; q=dns; s=default; b=rvR
	e+VJ7ltaP8x7cXV4gdHb9iJ1jeLIB/CqTA4RbgzMZuVsXnHlGXUIrvZDZhzPOzEK
	dpcZDQdkVAL0UQdTvRC6ZiPOJoIESJBgFoNOwyd5wBw7wU58hhAvR7aebAbmn1Ye
	4XfvzgPYq1jDIP8KHcbyvkR1xS4FIesiPqNz+IPQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:content-type:content-transfer-encoding; s=default; bh=XtEkJApa/
	irS8Kd5jBKrzcWhYFY=; b=DRNPl7Ln/be2TLZjIMfdWa/xUAKTR5X+dY6EmjcZJ
	rbEZcuoOUTsQCiJYo0FkQZ56WB9L1z37MVRZYxB/bEqqGTakgykl9UxLmiQXqY84
	3/jwH9TtoGNKWhEWijZYmGtJQzYD6fZdbOzafD/81vnTh168Ba212E60LsJIMmRz
	CE=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: limerock01.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Message-ID: <54EBB262.3000301@cornell.edu>
Date: Mon, 23 Feb 2015 18:06:10 -0500
From: Ken Brown <kbrown@cornell.edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: cygwin <cygwin@cygwin.com>
Subject: No prototype for sockatmark
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

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

