Update of /cvsroot/netrek/server/Vanilla/robotd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1775/robotd Modified Files: defaults.c Log Message: FreeBSD fix Index: defaults.c =================================================================== RCS file: /cvsroot/netrek/server/Vanilla/robotd/defaults.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- defaults.c 21 Mar 2005 05:23:45 -0000 1.1 +++ defaults.c 12 Apr 2006 11:57:00 -0000 1.2 @@ -4,6 +4,9 @@ */ #include "copyright2.h" #include <stdio.h> +#ifdef __FreeBSD__ +#include <string.h> +#endif struct stringlist { char *string; @@ -13,8 +16,10 @@ struct stringlist *defaults=NULL; +#ifndef __FreeBSD__ char *getenv(); char *strdup(); +#endif initDefaults(deffile) char *deffile; /* As opposed to defile? */ @@ -61,6 +66,7 @@ fclose(fp); } +#ifndef __FreeBSD__ char *strdup(str) char *str; { @@ -70,6 +76,7 @@ strcpy(s,str); return(s); } +#endif char *getdefault(str) char *str;