From da9fb6bd163d3fe75e0f6761539f27c28cfd0e04 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 6 Feb 2025 15:46:15 +0100 Subject: kbx: Fix for building without keyboxd. * kbx/keybox-fwddecl.h: New. * kbx/keybox.h: Replace typedef for KEYBOX_HANDLE by including the new file. * g10/keydb-private.h: Ditto. -- The duplicated typedef was a bit ugly and will fail, depending on compiler, iof for example building without keyboxd. Fix only tested in the standard case but the fix is obvious. --- kbx/keybox.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'kbx/keybox.h') diff --git a/kbx/keybox.h b/kbx/keybox.h index 1146eca31..5aa0de57d 100644 --- a/kbx/keybox.h +++ b/kbx/keybox.h @@ -28,13 +28,12 @@ extern "C" { #include "../common/iobuf.h" #include "keybox-search-desc.h" +#include "keybox-fwddecl.h" #ifdef KEYBOX_WITH_X509 # include #endif -typedef struct keybox_handle *KEYBOX_HANDLE; - typedef enum { -- cgit v1.2.3