Skip to content

Commit

Permalink
auth: mycrypt - include crypt.h
Browse files Browse the repository at this point in the history
Fixes crypt usage on glibc-2.28

Reported by Reuben Farrelly
Patch provided by Thore Bödecker
  • Loading branch information
cmouse authored and villesavolainen committed Nov 13, 2018
1 parent c860364 commit cdd0fd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/auth/mycrypt.c
Expand Up @@ -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"

Expand Down

0 comments on commit cdd0fd7

Please sign in to comment.