mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +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.
22 lines
400 B
C
22 lines
400 B
C
#ifndef _ARPA_INET_H
|
|
#define _ARPA_INET_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <netinet/in.h>
|
|
#include <sys/socket.h>
|
|
|
|
char *inet_ntoa(struct in_addr in);
|
|
const char *inet_ntop(int af, const void *cp, char *buf, socklen_t len);
|
|
|
|
int inet_aton(const char *cp, struct in_addr *inp);
|
|
|
|
int inet_pton(int af, const char *cp, void *buf);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _ARPA_INET_H */
|