BSD portability fixes

This commit is contained in:
Marco d'Itri 2017-02-26 14:13:27 +01:00
parent 4ac83a5f49
commit a4815eb370
3 changed files with 6 additions and 1 deletions

View File

@ -15,7 +15,7 @@ mkpasswd_OBJECTS := mkpasswd.o utils.o
# FreeBSD
#whois_LDADD += -liconv
#LIBS += -L/usr/local/lib -lintl
#INCLUDES += -I/usr/local/include
#DEFS += -I/usr/local/include
# OS/2 EMX
#whois_LDADD += -lsocket

View File

@ -13,6 +13,10 @@
/* autoconf in cpp macros */
#if defined __NetBSD__ || __OpenBSD__
# include <sys/param.h>
#endif
#ifdef linux
# define ENABLE_NLS
#endif

View File

@ -32,6 +32,7 @@
#endif
#include <fcntl.h>
#include <string.h>
#include <strings.h>
#include <time.h>
#include <sys/types.h>
#ifdef HAVE_XCRYPT