From a06f3b98cea5ee05039c444c0b501831cb0d40d3 Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Sun, 19 Jun 2022 18:43:25 +0200 Subject: [PATCH] For Griffin builds it is important this define does not get redefined Note to Cthulhu: We should probably put this in a header file somewhere --- network/natt.c | 2 ++ network/netplay/netplay_frontend.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/network/natt.c b/network/natt.c index 309208e299..da3302f1e1 100644 --- a/network/natt.c +++ b/network/natt.c @@ -31,8 +31,10 @@ #include "natt.h" #if defined(AF_INET6) && !defined(HAVE_SOCKET_LEGACY) && !defined(_3DS) +#ifndef HAVE_INET6 #define HAVE_INET6 1 #endif +#endif static bool translate_addr(struct sockaddr_in *addr, char *host, size_t hostlen, char *port, size_t portlen) diff --git a/network/netplay/netplay_frontend.c b/network/netplay/netplay_frontend.c index 1aee1dcdfe..5f3e2aa3f5 100644 --- a/network/netplay/netplay_frontend.c +++ b/network/netplay/netplay_frontend.c @@ -79,8 +79,10 @@ #include "netplay_private.h" #if defined(AF_INET6) && !defined(HAVE_SOCKET_LEGACY) && !defined(_3DS) +#ifndef HAVE_INET6 #define HAVE_INET6 1 #endif +#endif #ifdef TCP_NODELAY #define SET_TCP_NODELAY(fd) \