--- radiusclient-0.3.2.orig/src/local.c
+++ radiusclient-0.3.2/src/local.c
@@ -15,13 +15,17 @@
 #include <messages.h>
 #include <radlogin.h>
 
+#ifdef HAVE_SHADOW_PASSWORDS
+#include <shadow.h>
+#endif /* HAVE_SHADOW_PASSWORDS */
+
 extern ENV *env;
 
 LFUNC auth_local(char *username, char *passwd)
 {
 	struct passwd	*pw;
 	char		*xpasswd;
-#ifdef SHADOW_PASSWORD
+#ifdef HAVE_SHADOW_PASSWORDS
 	struct spwd	*spw;
 #endif
 
@@ -33,7 +37,7 @@
 	}
 	endpwent();
 	
-#ifdef SHADOW_PASSWORD
+#ifdef HAVE_SHADOW_PASSWORDS
         if((spw = getspnam(pw->pw_name)) == NULL) {
 			endspent();
 			rc_log(LOG_NOTICE, "authentication FAILED, type local, username %s", username);
@@ -45,7 +49,7 @@
         	pw->pw_passwd = spw->sp_pwdp; 
         }
         endspent();
-#endif /* SHADOW_PASSWORD */
+#endif /* HAVE_SHADOW_PASSWORDS */
 
 	xpasswd = crypt(passwd, pw->pw_passwd);
 	
