mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
Some compilation fixes for compat_ifaddrs.c
This commit is contained in:
parent
4fce2e74ac
commit
e99a97d9b7
@ -941,6 +941,11 @@ ifeq ($(HAVE_NETWORKING), 1)
|
||||
OBJ += libretro-common/net/net_ifinfo.o
|
||||
endif
|
||||
|
||||
ifeq ($(WANT_IFADDRS), 1)
|
||||
DEFINES += -DWANT_IFADDRS
|
||||
OBJ += libretro-common/compat/compat_ifaddrs.o
|
||||
endif
|
||||
|
||||
ifneq ($(findstring Win32,$(OS)),)
|
||||
LIBS += -lws2_32
|
||||
endif
|
||||
|
@ -25,8 +25,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include <compat/ifaddrs.h>
|
||||
#include <retro_miscellaneous.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
#ifndef _WIN32
|
||||
@ -35,6 +36,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include <net/if_arp.h>
|
||||
#include <netinet/in.h>
|
||||
#include <linux/netlink.h>
|
||||
#include <linux/if_packet.h>
|
||||
#include <linux/rtnetlink.h>
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user