FreeBSD buildfix

This commit is contained in:
Brad Parker 2017-03-29 16:47:58 +00:00
parent 989815e9f2
commit dd80ffc61b
3 changed files with 10 additions and 1 deletions

View File

@ -22,6 +22,11 @@ LIBS :=
DEFINES := -DHAVE_CONFIG_H -DRARCH_INTERNAL -DHAVE_OVERLAY
DEFINES += -DGLOBAL_CONFIG_DIR='"$(GLOBAL_CONFIG_DIR)"'
ifneq ($(findstring BSD,$(OS)),)
CFLAGS += -DBSD
LDFLAGS += -L/usr/local/lib
endif
ifneq ($(findstring DOS,$(OS)),)
CFLAGS += -march=i386
LDFLAGS += -lemu

View File

@ -44,6 +44,10 @@
#include <net/net_ifinfo.h>
#if defined(BSD)
#include <netinet/in.h>
#endif
void net_ifinfo_free(net_ifinfo_t *list)
{
unsigned k;

View File

@ -55,7 +55,7 @@
#include <time.h>
#endif
#if defined(VITA)
#if defined(VITA) || defined(BSD)
#include <sys/time.h>
#endif