diff options
Diffstat (limited to 'navit/navit/support/win32/addwinsock.c')
-rw-r--r-- | navit/navit/support/win32/addwinsock.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/navit/navit/support/win32/addwinsock.c b/navit/navit/support/win32/addwinsock.c new file mode 100644 index 000000000..63ae968d5 --- /dev/null +++ b/navit/navit/support/win32/addwinsock.c @@ -0,0 +1,8 @@ +#include "addwinsock.h"
+
+int inet_aton(const char *cp, struct in_addr *inp)
+{
+ unsigned long addr = inet_addr(cp);
+ inp->S_un.S_addr = addr;
+ return addr != -1;
+}
|