kumquat-buildroot/package/bind/0002-dlz_open_driver.c-fix-build-without-dlfcn.h.patch
Fabrice Fontaine 05cbc9a184 package/bind: enable static build
Static build has been disabled in 2014 with commit
6045904752 however bind can be built
statically thanks to --without-dlopen so enable it back

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-05-09 21:23:57 +02:00

29 lines
831 B
Diff

From 92b738a0fe8a7d65346de9e6dd7a8f135ee29765 Mon Sep 17 00:00:00 2001
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date: Tue, 23 Apr 2019 22:45:25 +0200
Subject: [PATCH] dlz_open_driver.c: fix build without dlfcn.h
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Upstream status: https://gitlab.isc.org/isc-projects/bind9/issues/995]
---
bin/named/unix/dlz_dlopen_driver.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bin/named/unix/dlz_dlopen_driver.c b/bin/named/unix/dlz_dlopen_driver.c
index 74d29ffa09..ab8a5c9493 100644
--- a/bin/named/unix/dlz_dlopen_driver.c
+++ b/bin/named/unix/dlz_dlopen_driver.c
@@ -14,7 +14,9 @@
#include <inttypes.h>
#include <stdlib.h>
#include <string.h>
+#if HAVE_DLFCN_H
#include <dlfcn.h>
+#endif
#include <dns/log.h>
#include <dns/result.h>
--
2.20.1