summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/mkpasswd/mkpasswd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/mkpasswd/mkpasswd.c b/package/mkpasswd/mkpasswd.c
index 5820f32501..fd16230468 100644
--- a/package/mkpasswd/mkpasswd.c
+++ b/package/mkpasswd/mkpasswd.c
@@ -44,6 +44,11 @@
#include <sys/time.h>
#endif
+/* glibc without crypt() */
+#ifndef _XOPEN_CRYPT
+#include <crypt.h>
+#endif
+
/* Application-specific */
#include "utils.h"
OpenPOWER on IntegriCloud