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

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

On Fri, 4 May 2018 13:36:06 +0200
David Demelier <> 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


Laslo Hunhold <>
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