]> git.ozlabs.org Git - ppp.git/commitdiff
Fix build when libc doesn't have shadow password support
authorMaxime Bizon <mbizon@freebox.fr>
Thu, 9 Oct 2008 01:33:36 +0000 (03:33 +0200)
committerPaul Mackerras <paulus@samba.org>
Thu, 9 Oct 2008 11:45:05 +0000 (22:45 +1100)
Building ppp using uclibc, which doesn't have shadow password support,
gets this error:

session.c:76:20: error: shadow.h: No such file or directory

This fixes it.

Signed-off-by: Paul Mackerras <paulus@samba.org>
pppd/session.c

index db70b436e8deacbc91084c4d67ef5f59063b4749..bb7c5fa1cb5b20de096317b2467e7898f97b909c 100644 (file)
@@ -73,7 +73,9 @@
 #include <string.h>
 #include <pwd.h>
 #include <crypt.h>
+#ifdef USE_SHADOW
 #include <shadow.h>
+#endif
 #include <time.h>
 #include <utmp.h>
 #include <fcntl.h>