mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 00:40:09 +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 := -DHAVE_CONFIG_H -DRARCH_INTERNAL -DHAVE_OVERLAY
|
||||||
DEFINES += -DGLOBAL_CONFIG_DIR='"$(GLOBAL_CONFIG_DIR)"'
|
DEFINES += -DGLOBAL_CONFIG_DIR='"$(GLOBAL_CONFIG_DIR)"'
|
||||||
|
|
||||||
|
ifneq ($(findstring BSD,$(OS)),)
|
||||||
|
CFLAGS += -DBSD
|
||||||
|
LDFLAGS += -L/usr/local/lib
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(findstring DOS,$(OS)),)
|
ifneq ($(findstring DOS,$(OS)),)
|
||||||
CFLAGS += -march=i386
|
CFLAGS += -march=i386
|
||||||
LDFLAGS += -lemu
|
LDFLAGS += -lemu
|
||||||
|
@ -44,6 +44,10 @@
|
|||||||
|
|
||||||
#include <net/net_ifinfo.h>
|
#include <net/net_ifinfo.h>
|
||||||
|
|
||||||
|
#if defined(BSD)
|
||||||
|
#include <netinet/in.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
void net_ifinfo_free(net_ifinfo_t *list)
|
void net_ifinfo_free(net_ifinfo_t *list)
|
||||||
{
|
{
|
||||||
unsigned k;
|
unsigned k;
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(VITA)
|
#if defined(VITA) || defined(BSD)
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user