The crypt function is no more defined in unistd.h in recent glibc
version even though the manual page says it is.
---
 slock.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/slock.c b/slock.c
index 5ae738c..f8e0a05 100644
--- a/slock.c
+++ b/slock.c
@@ -4,6 +4,7 @@
 #include <shadow.h>
 #endif
 
+#include <crypt.h>
 #include <ctype.h>
 #include <errno.h>
 #include <grp.h>
-- 
2.17.0


Reply via email to