--- ssmtp.c.orig	2002-08-21 13:36:01.000000000 +0200
+++ ssmtp.c	2002-08-21 13:36:01.000000000 +0200
@@ -18,6 +18,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <pwd.h>
+#include <netdb.h>
 
 #include <syslog.h>
 #include <signal.h>
@@ -123,7 +124,7 @@
 		if((sd = strdup(buf)) == NULL) {
 			die("strup() failed in get_addr()");
 		}
-		while(*sd && isspace(*sd)) sd++;
+		while(*sd && isspace((int)(*sd))) sd++;
 
 		if(strncpy(buf, sd, sz) == NULL) {
 			die("strncpy() failed in get_addr()");
@@ -132,7 +133,7 @@
 		/* Strip trailing spaces */
 		i = strlen(buf);
 		while(i-- > 0) {
-			if(isspace(buf[i]) == 0) break;
+			if(isspace((int)buf[i]) == 0) break;
 		}
 		buf[(i + 1)] = (char)NULL;
 	}
@@ -171,7 +172,7 @@
 				*p = (char)NULL;
 			}
 
-			while(*str && isspace(*str)) str++;
+			while(*str && isspace((int)(*str))) str++;
 			get_addr(str, buf, BUF_SZ);
 
 			str = (p + 1);
