summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dns.h
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/dns.h')
-rw-r--r--mdk-stage1/dns.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdk-stage1/dns.h b/mdk-stage1/dns.h
index 8506db923..97af9c08a 100644
--- a/mdk-stage1/dns.h
+++ b/mdk-stage1/dns.h
@@ -22,9 +22,9 @@
#ifndef H_DNS
#define H_DNS
-#include <netdb.h>
+#include <netinet/in.h>
-// needs a wrapper since gethostbyname from dietlibc doesn't support domain handling
-struct hostent *mygethostbyname(const char *name);
+int mygethostbyname(char * name, struct in_addr * addr);
+char * mygethostbyaddr(char * ipnum);
#endif