Re: Declaration of crypt

2016-06-09 Thread Corinna Vinschen
On Jun 9 10:07, Ken Brown wrote: > On 6/9/2016 8:32 AM, Corinna Vinschen wrote: > > Can you please define crypt, encrypt and setkey explicitely in unistd.h > > per POSIX, rather than including crypt.h? This would not only be target > > independent, it would also be more correct. As a side effect

Re: Declaration of crypt

2016-06-09 Thread Eric Blake
On 06/09/2016 08:07 AM, Ken Brown wrote: > On 6/9/2016 8:32 AM, Corinna Vinschen wrote: >> Can you please define crypt, encrypt and setkey explicitely in unistd.h >> per POSIX, rather than including crypt.h? This would not only be target >> independent, it would also be more correct. As a side ef

Re: Declaration of crypt

2016-06-09 Thread Ken Brown
On 6/9/2016 8:32 AM, Corinna Vinschen wrote: Can you please define crypt, encrypt and setkey explicitely in unistd.h per POSIX, rather than including crypt.h? This would not only be target independent, it would also be more correct. As a side effect I will have to come up with a new version of

Re: Declaration of crypt

2016-06-09 Thread Corinna Vinschen
On Jun 9 08:05, Ken Brown wrote: > On 6/9/2016 5:00 AM, Corinna Vinschen wrote: > > Hi Ken, > > > > On Jun 8 17:18, Ken Brown wrote: > > > According to Posix, including should bring in the declaration > > > of > > > crypt. The glibc and FreeBSD headers are consistent with this, but > > > Cyg

Re: Declaration of crypt

2016-06-09 Thread Ken Brown
On 6/9/2016 5:00 AM, Corinna Vinschen wrote: Hi Ken, On Jun 8 17:18, Ken Brown wrote: According to Posix, including should bring in the declaration of crypt. The glibc and FreeBSD headers are consistent with this, but Cygwin's aren't. $ cat test.c #include int main (void) { const char *

Re: Declaration of crypt

2016-06-09 Thread Corinna Vinschen
Hi Ken, On Jun 8 17:18, Ken Brown wrote: > According to Posix, including should bring in the declaration of > crypt. The glibc and FreeBSD headers are consistent with this, but Cygwin's > aren't. > > $ cat test.c > #include > > int > main (void) > { > const char *key = NULL; > const char