summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pppd/Makefile.linux2
1 files changed, 1 insertions, 1 deletions
diff --git a/pppd/Makefile.linux b/pppd/Makefile.linux
index a971ff3..a6348eb 100644
--- a/pppd/Makefile.linux
+++ b/pppd/Makefile.linux
@@ -140,7 +140,7 @@ CFLAGS += -DHAS_SHADOW
#LIBS += -lshadow $(LIBS)
endif
-ifneq ($(wildcard $(shell $(CC) --print-sysroot)/usr/include/crypt.h),)
+ifeq ($(shell echo '\#include <crypt.h>' | $(CC) -E - >/dev/null 2>&1 && echo yes),yes)
CFLAGS += -DHAVE_CRYPT_H=1
LIBS += -lcrypt
endif