mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 20:50:41 +00:00
fix iax win32 build for inet_aton
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1136 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
ecc2a3baa1
commit
429cdca58f
@ -36,7 +36,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
void gettimeofday(struct timeval *tv, void /*struct timezone*/ *tz);
|
void gettimeofday(struct timeval *tv, void /*struct timezone*/ *tz);
|
||||||
|
#include "winpoop.h"
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
@ -24,7 +24,6 @@ void gettimeofday(struct timeval *tv, void /*struct timezone*/ *tz);
|
|||||||
|
|
||||||
static INLINE int inet_aton(char *cp, struct in_addr *inp)
|
static INLINE int inet_aton(char *cp, struct in_addr *inp)
|
||||||
{
|
{
|
||||||
int res;
|
|
||||||
int a1, a2, a3, a4;
|
int a1, a2, a3, a4;
|
||||||
unsigned int saddr;
|
unsigned int saddr;
|
||||||
if (sscanf(cp, "%d.%d.%d.%d", &a1, &a2, &a3, &a4) != 4)
|
if (sscanf(cp, "%d.%d.%d.%d", &a1, &a2, &a3, &a4) != 4)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user