mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
Provide implementation for inet_aton for Xbox
This commit is contained in:
parent
0800047258
commit
be367138f6
1 changed files with 8 additions and 0 deletions
|
@ -347,6 +347,14 @@ uint16_t inet_htons(uint16_t hostshort)
|
|||
#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)
|
||||
{
|
||||
#if defined(VITA) || defined(__ORBIS__)
|
||||
|
|
Loading…
Add table
Reference in a new issue