Ensure isc_rwlocktype_t is defined always

Prevent issues in compilation after dns/zt.h change.
This commit is contained in:
Petr Menšík 2023-01-16 21:56:43 +01:00
parent 9b329d0dd6
commit ced3b36a51
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,27 @@
From 395d6fca2638129e1cc1f55ee4b3aa0dbba44dc0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
Date: Mon, 16 Jan 2023 11:45:31 +0100
Subject: [PATCH] Include isc_rwlocktype_t type definition in zt.h
After changes zt.h uses rwlock type, which is not enforced to be always
defined. Ensure full type definition is ready by including appropriate
header.
---
lib/dns/include/dns/zt.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/dns/include/dns/zt.h b/lib/dns/include/dns/zt.h
index 077b26ddea..037d0a9495 100644
--- a/lib/dns/include/dns/zt.h
+++ b/lib/dns/include/dns/zt.h
@@ -18,6 +18,7 @@
#include <stdbool.h>
#include <isc/lang.h>
+#include <isc/rwlock.h>
#include <dns/types.h>
--
2.39.0

View File

@ -101,6 +101,8 @@ Patch16: bind-9.16-redhat_doc.patch
Patch22: bind-9.11-fips-tests.patch Patch22: bind-9.11-fips-tests.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=2122010 # https://bugzilla.redhat.com/show_bug.cgi?id=2122010
Patch26: bind-9.18-unittest-netmgr-unstable.patch Patch26: bind-9.18-unittest-netmgr-unstable.patch
# https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/7376/
Patch27: bind-9.18-zt-include-rwlock.patch
%{?systemd_ordering} %{?systemd_ordering}
Requires: coreutils Requires: coreutils
@ -951,6 +953,7 @@ fi;
%changelog %changelog
* Mon Jan 16 2023 Petr Menšík <pemensik@redhat.com> - 32:9.18.10-1 * Mon Jan 16 2023 Petr Menšík <pemensik@redhat.com> - 32:9.18.10-1
- Update to 9.18.10 (#2143258) - Update to 9.18.10 (#2143258)
- Include rwlock.h from dns/zt.h
* Mon Nov 21 2022 Petr Menšík <pemensik@redhat.com> - 32:9.18.9-1 * Mon Nov 21 2022 Petr Menšík <pemensik@redhat.com> - 32:9.18.9-1
- Update to 9.18.9 (#2143258) - Update to 9.18.9 (#2143258)