FreeBSD fixes

This commit is contained in:
Andrew Pamment 2017-03-17 19:50:37 +10:00
parent f681ddc568
commit 432c71bc4a
3 changed files with 7 additions and 1 deletions

View File

@ -102,7 +102,7 @@ c89:
freebsd: freebsd:
$(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -lreadline" $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX -I/usr/local/include" SYSLIBS="-L/usr/local/lib -Wl,-E -lreadline" CC=cc
generic: $(ALL) generic: $(ALL)

3
www.c
View File

@ -8,6 +8,9 @@
#include <b64/cdecode.h> #include <b64/cdecode.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#ifdef __FreeBSD__
#include <netinet/in.h>
#endif
#include "bbs.h" #include "bbs.h"
#define GET 1 #define GET 1

View File

@ -4,6 +4,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/utsname.h> #include <sys/utsname.h>
#ifdef __FreeBSD__
#include <sys/stat.h>
#endif
#include "bbs.h" #include "bbs.h"
#include "jamlib/jam.h" #include "jamlib/jam.h"