opnsense-ports/dns/nss_resinit/files/patch-nss_resinit.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

22 lines
564 B
C

Index: nss_resinit.c
diff -u -p nss_resinit.c.orig nss_resinit.c
--- nss_resinit.c.orig Wed Apr 12 20:29:35 2006
+++ nss_resinit.c Tue Jan 23 09:48:22 2007
@@ -44,6 +44,17 @@ __RCSID("$Mahoroba: src/nss_resinit/nss_
#ifndef res_ninit
typedef struct __res_state *res_state;
+#endif
+
+#ifdef WITH_COMPAT5X
+extern struct __res_state *___res(void);
+#undef _res
+#define _res (*___res())
+#undef res_ninit
+#undef __res_vinit
+#endif
+
+#ifndef res_ninit
#define res_ninit(res) res_init()
#define __res_vinit(res, preinit) (res_close(), res_init())
#endif