On Fri, May 04, 2018 at 02:25:43PM +0200, Laslo Hunhold wrote: > On Fri, 4 May 2018 13:36:06 +0200 > David Demelier <[email protected]> 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?
I have glibc-2.27 on fedora 28. Hmm, using __USE_XOPEN doesn't help. I wonder what they broke. -- David
