mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
FreeBSD buildfix
This commit is contained in:
parent
989815e9f2
commit
dd80ffc61b
3 changed files with 10 additions and 1 deletions
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…
Add table
Reference in a new issue