mirror of
https://github.com/libretro/RetroArch
synced 2025-02-19 03:40:59 +00:00
FreeBSD buildfix
This commit is contained in:
parent
989815e9f2
commit
dd80ffc61b
5
Makefile
5
Makefile
@ -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
|
||||
|
@ -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;
|
||||
|
@ -55,7 +55,7 @@
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
||||
#if defined(VITA)
|
||||
#if defined(VITA) || defined(BSD)
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user