about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-04-06 15:47:26 -0400
committerRich Felker <dalias@aerifal.cx>2011-04-06 15:47:26 -0400
commit97d0988fd816ff9474535cf356b53ce6a5acc6ef (patch)
treeeeda92dc28a309a6d27de125cf8d52d16f5b0165
parent2b55a619e48e587a09d0620b959dd73f808d57ed (diff)
downloadmusl-97d0988fd816ff9474535cf356b53ce6a5acc6ef.tar.gz
musl-97d0988fd816ff9474535cf356b53ce6a5acc6ef.tar.xz
musl-97d0988fd816ff9474535cf356b53ce6a5acc6ef.zip
add _res (__res_state()) dummy
-rw-r--r--src/network/res_state.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/network/res_state.c b/src/network/res_state.c
new file mode 100644
index 00000000..5c42cda5
--- /dev/null
+++ b/src/network/res_state.c
@@ -0,0 +1,9 @@
+#include <resolv.h>
+
+/* This is completely unused, and exists purely to satisfy broken apps. */
+
+struct __res_state *__res_state()
+{
+	static struct __res_state res;
+	return &res;
+}