change ldso path file logic to replace rather than add to search path
[oweals/musl.git] / src / network / res_query.c
index 4ebeb102a053389012a9448af03f0050512d742a..c3ad10901ac6fbbe4120c64f888be65e98e49452 100644 (file)
@@ -1,5 +1,7 @@
+#define _GNU_SOURCE
 #include <netdb.h>
 #include "__dns.h"
+#include "libc.h"
 
 int res_query(const char *name, int class, int type, unsigned char *dest, int len)
 {
@@ -18,3 +20,5 @@ int res_query(const char *name, int class, int type, unsigned char *dest, int le
        }
        return 512;
 }
+
+weak_alias(res_query, res_search);