Skip to content

Commit e836143

Browse files
authored
Fix dns resolv linkage issue on haiku (#7350)
1 parent ca94d55 commit e836143

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/standard/dns.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@
4747
#endif
4848
#if HAVE_RESOLV_H
4949
#include <resolv.h>
50+
#if defined(__HAIKU__)
51+
extern void __res_ndestroy(res_state statp);
52+
#define res_ndestroy __res_ndestroy
53+
#endif
5054
#endif
5155
#ifdef HAVE_DNS_H
5256
#include <dns.h>

0 commit comments

Comments
 (0)