- (dtucker) [auth-passwd.c auth-shadow.c] Only enable shadow expiry check
   if HAS_SHADOW_EXPIRY is set.
diff --git a/auth-passwd.c b/auth-passwd.c
index e434a21..28f29cc 100644
--- a/auth-passwd.c
+++ b/auth-passwd.c
@@ -97,7 +97,7 @@
 		return ok;
 	}
 #endif
-#ifdef USE_SHADOW
+#if defined(USE_SHADOW) && defined(HAS_SHADOW_EXPIRE)
 	if (auth_shadow_pwexpired(authctxt)) {
 		disable_forwarding();
 		authctxt->force_pwchange = 1;