mirror of
https://github.com/libretro/RetroArch
synced 2025-04-03 10:21:31 +00:00
Provide implementation for inet_aton for Xbox
This commit is contained in:
parent
0800047258
commit
be367138f6
@ -347,6 +347,14 @@ uint16_t inet_htons(uint16_t hostshort)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef _XBOX
|
||||||
|
static int inet_aton(const char *cp, struct in_addr *addr)
|
||||||
|
{
|
||||||
|
addr->s_addr = inet_addr(cp);
|
||||||
|
return (addr->s_addr == INADDR_NONE) ? 0 : 1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int inet_ptrton(int af, const char *src, void *dst)
|
int inet_ptrton(int af, const char *src, void *dst)
|
||||||
{
|
{
|
||||||
#if defined(VITA) || defined(__ORBIS__)
|
#if defined(VITA) || defined(__ORBIS__)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user