summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/network/gethostbyname.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/network/gethostbyname.c')
-rw-r--r--libc-top-half/musl/src/network/gethostbyname.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/network/gethostbyname.c b/libc-top-half/musl/src/network/gethostbyname.c
new file mode 100644
index 0000000..bfedf52
--- /dev/null
+++ b/libc-top-half/musl/src/network/gethostbyname.c
@@ -0,0 +1,11 @@
+#define _GNU_SOURCE
+
+#include <sys/socket.h>
+#include <netdb.h>
+#include <string.h>
+#include <netinet/in.h>
+
+struct hostent *gethostbyname(const char *name)
+{
+ return gethostbyname2(name, AF_INET);
+}