]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: mycrypt - include crypt.h
authorAki Tuomi <aki.tuomi@dovecot.fi>
Wed, 8 Aug 2018 09:33:20 +0000 (12:33 +0300)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Mon, 13 Aug 2018 11:44:47 +0000 (14:44 +0300)
Fixes crypt usage on glibc-2.28

Reported by Reuben Farrelly
Patch provided by Thore Bödecker

configure.ac
src/auth/mycrypt.c

index dd545ebfdcc7687fabd34b3c346ae81b97048c71..c5d8fae666441e34069fd8324fe4732093f986fd 100644 (file)
@@ -315,7 +315,7 @@ AC_CHECK_HEADERS(strings.h stdint.h unistd.h dirent.h malloc.h \
   quota.h sys/fs/quota_common.h \
   mntent.h sys/mnttab.h sys/event.h sys/time.h sys/mkdev.h linux/dqblk_xfs.h \
   xfs/xqm.h execinfo.h ucontext.h malloc_np.h sys/utsname.h sys/vmount.h \
-  sys/utsname.h glob.h linux/falloc.h ucred.h sys/ucred.h)
+  sys/utsname.h glob.h linux/falloc.h ucred.h sys/ucred.h crypt.h)
 
 CC_CLANG
 AC_CC_PIE
index c49fcf842eaa372529fa1a620dd7971a795951e0..0bd00bc2389d76843bd829753305e381c54a7b9a 100644 (file)
@@ -14,6 +14,9 @@
 #  define _XPG6 /* Some Solaris versions require this, some break with this */
 #endif
 #include <unistd.h>
+#ifdef HAVE_CRYPT_H
+# include <crypt.h>
+#endif
 
 #include "mycrypt.h"