diff options
author | Marco d'Itri <md@linux.it> | 2018-09-11 01:15:34 +0200 |
---|---|---|
committer | Marco d'Itri <md@linux.it> | 2018-09-16 03:36:38 +0200 |
commit | c1cb4b2ca0ad1f237cccc84a4f1b84cd60a76a15 (patch) | |
tree | 13f3f7ee492e1b369db3ae88791697761de6d2f1 | |
parent | 44775cb342d63ec3fbc7eafee604a59c643913a0 (diff) | |
download | whois-c1cb4b2ca0ad1f237cccc84a4f1b84cd60a76a15.tar.gz |
mkpasswd: update the libowcrypt Makefile section
Distributions which have crypt_gensalt in libowcrypt now should define
a HAVE_LIBOWCRYPT=1 Makefile variable.
-rw-r--r-- | Makefile | 9 | ||||
-rw-r--r-- | mkpasswd.c | 1 |
2 files changed, 5 insertions, 5 deletions
@@ -57,10 +57,11 @@ mkpasswd_LDADD += $(shell $(PKG_CONFIG) --libs libcrypt) else ifdef HAVE_XCRYPT DEFS += -DHAVE_XCRYPT_H -DHAVE_LINUX_CRYPT_GENSALT mkpasswd_LDADD += -lxcrypt -ifdef HAVE_LINUX_CRYPT_GENSALT -# owl and openSUSE have crypt_gensalt(3) in the libc's libcrypt -DEFS += -DHAVE_LINUX_CRYPT_GENSALT -endif +else ifdef HAVE_LIBOWCRYPT +# owl and openSUSE have crypt_gensalt(3) in libowcrypt +DEFS += -DHAVE_LINUX_CRYPT_GENSALT -D_OW_SOURCE +mkpasswd_LDADD += -lcrypt -lowcrypt +else mkpasswd_LDADD += -lcrypt endif @@ -40,7 +40,6 @@ #include <sys/stat.h> #endif #ifdef HAVE_LINUX_CRYPT_GENSALT -#define _OW_SOURCE #include <crypt.h> #endif #ifdef HAVE_GETTIMEOFDAY |