mirror of
https://github.com/rfc1036/whois.git
synced 2026-04-03 06:40:52 +00:00
mkpasswd: rename HAVE_XCRYPT to HAVE_XCRYPT_H
This commit is contained in:
parent
7a325d277c
commit
44775cb342
2
Makefile
2
Makefile
@ -55,8 +55,8 @@ ifeq ($(shell $(PKG_CONFIG) --exists 'libxcrypt >= 4.1' || echo NO),)
|
||||
DEFS += -DHAVE_LINUX_CRYPT_GENSALT $(shell $(PKG_CONFIG) --cflags libcrypt)
|
||||
mkpasswd_LDADD += $(shell $(PKG_CONFIG) --libs libcrypt)
|
||||
else ifdef HAVE_XCRYPT
|
||||
DEFS += -DHAVE_XCRYPT_H -DHAVE_LINUX_CRYPT_GENSALT
|
||||
mkpasswd_LDADD += -lxcrypt
|
||||
DEFS += -DHAVE_XCRYPT -DHAVE_LINUX_CRYPT_GENSALT
|
||||
ifdef HAVE_LINUX_CRYPT_GENSALT
|
||||
# owl and openSUSE have crypt_gensalt(3) in the libc's libcrypt
|
||||
DEFS += -DHAVE_LINUX_CRYPT_GENSALT
|
||||
|
||||
@ -35,7 +35,7 @@
|
||||
#include <strings.h>
|
||||
#include <time.h>
|
||||
#include <sys/types.h>
|
||||
#ifdef HAVE_XCRYPT
|
||||
#ifdef HAVE_XCRYPT_H
|
||||
#include <xcrypt.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user