Re: [hackers] [PATCH] Add crypt.h for recent glibc versions

From: Laslo Hunhold <dev_AT_frign.de>
Date: Fri, 4 May 2018 14:25:43 +0200

On Fri, 4 May 2018 13:36:06 +0200
David Demelier <markand_AT_malikania.fr> wrote:

Dear David,

> The crypt function is no more defined in unistd.h in recent glibc
> version even though the manual page says it is.

then this is very likely a glibc-bug. What matters is what is defined in
Posix[0], and there's no mention of a "crypt.h" header.

In glibc 2.26-r6 I still find crypt() defined in unistd.h, but it's
"masked" by __USE_XOPEN (given it's an XSI-extension). Maybe what slock
probably needs is a -D_XOPEN_SOURCE in the CPPFLAGS, but honestly I
wasn't able to reproduce your problem here.
Which versions of glibc are you talking about?

With best regards

Laslo Hunhold

[0]:http://pubs.opengroup.org/onlinepubs/9699919799.2013edition/functions/crypt.html

-- 
Laslo Hunhold <dev_AT_frign.de>
Received on Fri May 04 2018 - 14:25:43 CEST

This archive was generated by hypermail 2.3.0 : Fri May 04 2018 - 14:36:24 CEST