aboutsummaryrefslogtreecommitdiff
path: root/win32/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/net.c')
-rw-r--r--win32/net.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/win32/net.c b/win32/net.c
new file mode 100644
index 000000000..93e19ae5c
--- /dev/null
+++ b/win32/net.c
@@ -0,0 +1,11 @@
1#include "libbb.h"
2
3int inet_aton(const char *cp, struct in_addr *inp)
4{
5 unsigned long val = inet_addr(cp);
6
7 if (val == INADDR_NONE)
8 return 0;
9 inp->S_un.S_addr = val;
10 return 1;
11}