mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 09:32:52 +00:00
c5f9fc0a34
== DETAILS For local netplay, it's useful to have your IP address easily available. This commit makes the Information > Network Information menu display the Wii U's IP address. Change summary: - Fix the logging init to be reentrant to avoid socket consumption - Add implementation of POSIX `getifaddrs()` and `freeifaddrs()` to `missing_libc_functions.c` - Remove compiler directives protecting the code paths that call `getifaddrs()` from being used in Wii U builds == TESTING Have tested locally, successfully get IP address information in the Information > Network Information. I think this may also fix NAT traversal. Will need to be tested.
18 lines
376 B
C
18 lines
376 B
C
#ifndef _IFADDRS_H_
|
|
#define _IFADDRS_H_
|
|
|
|
#include <sys/socket.h>
|
|
|
|
struct ifaddrs {
|
|
struct ifaddrs *ifa_next;
|
|
char *ifa_name;
|
|
unsigned int ifa_flags;
|
|
struct sockaddr *ifa_addr;
|
|
struct sockaddr *ifa_netmask;
|
|
struct sockaddr *ifa_dstaddr;
|
|
void *ifa_data;
|
|
};
|
|
|
|
int getifaddrs(struct ifaddrs **ifap);
|
|
void freeifaddrs(struct ifaddrs *ifp);
|
|
#endif // _IFADDRS_H_
|