diff --exclude='*~' -urN scanssh-2.1.orig/arc4random.c scanssh-2.1/arc4random.c --- scanssh-2.1.orig/arc4random.c 2005-03-08 21:20:11.117873024 -0500 +++ scanssh-2.1/arc4random.c 2005-03-08 21:26:22.265450016 -0500 @@ -1,5 +1,6 @@ #include #include +#include #include "config.h" diff --exclude='*~' -urN scanssh-2.1.orig/interface.c scanssh-2.1/interface.c --- scanssh-2.1.orig/interface.c 2005-03-08 21:20:11.116873176 -0500 +++ scanssh-2.1/interface.c 2005-03-08 21:33:50.532303096 -0500 @@ -56,6 +56,13 @@ #include "interface.h" +#ifndef HAVE_STRLCPY + size_t strlcpy(char *, const char *, size_t); +#endif +#ifndef HAVE_STRLCAT + size_t strlcat(char *, const char *, size_t); +#endif + /* Prototypes */ static int pcap_dloff(pcap_t *); diff --exclude='*~' -urN scanssh-2.1.orig/md5.c scanssh-2.1/md5.c --- scanssh-2.1.orig/md5.c 2005-03-08 21:20:11.117873024 -0500 +++ scanssh-2.1/md5.c 2005-03-08 21:26:53.747663992 -0500 @@ -23,6 +23,7 @@ copyright in any changes I have made; this code remains in the public domain. */ +#include #include #ifdef HAVE_CONFIG_H diff --exclude='*~' -urN scanssh-2.1.orig/scanssh.c scanssh-2.1/scanssh.c --- scanssh-2.1.orig/scanssh.c 2005-03-08 21:20:11.124871960 -0500 +++ scanssh-2.1/scanssh.c 2005-03-08 21:34:08.508570288 -0500 @@ -78,6 +78,10 @@ #define DNFPRINTF(y, x) #endif +#ifndef HAVE_STRLCPY + size_t strlcpy(char *, const char *, size_t); +#endif + struct address_node { TAILQ_ENTRY (address_node) an_next; diff --exclude='*~' -urN scanssh-2.1.orig/xmalloc.c scanssh-2.1/xmalloc.c --- scanssh-2.1.orig/xmalloc.c 2005-03-08 21:20:11.120872568 -0500 +++ scanssh-2.1/xmalloc.c 2005-03-08 21:34:26.479838240 -0500 @@ -20,6 +20,10 @@ #include "config.h" +#ifndef HAVE_STRLCPY + size_t strlcpy(char *, const char *, size_t); +#endif + void * xmalloc(size_t size) {