ソースを参照

add _res (__res_state()) dummy

Rich Felker 14 年 前
コミット
97d0988fd8
1 ファイル変更9 行追加0 行削除
  1. 9 0
      src/network/res_state.c

+ 9 - 0
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;
+}