This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: No prototype for sockatmark


On Feb 23 18:06, Ken Brown wrote:
> 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);

Patch applied.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgpPf9PPgdkIe.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]