aboutsummaryrefslogtreecommitdiffstats
path: root/kbx
diff options
context:
space:
mode:
Diffstat (limited to 'kbx')
-rw-r--r--kbx/keyboxd.c1
-rw-r--r--kbx/keyboxd.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/kbx/keyboxd.c b/kbx/keyboxd.c
index 59e320467..9b46565c6 100644
--- a/kbx/keyboxd.c
+++ b/kbx/keyboxd.c
@@ -46,6 +46,7 @@
#endif
#include <npth.h>
+#define INCLUDED_BY_MAIN_MODULE 1
#define GNUPG_COMMON_NEED_AFLOCAL
#include "keyboxd.h"
#include <assuan.h> /* Malloc hooks and socket wrappers. */
diff --git a/kbx/keyboxd.h b/kbx/keyboxd.h
index d7bb97ab9..f0b705aad 100644
--- a/kbx/keyboxd.h
+++ b/kbx/keyboxd.h
@@ -33,6 +33,7 @@
/* A large struct name "opt" to keep global flags */
+EXTERN_UNLESS_MAIN_MODULE
struct
{
unsigned int debug; /* Debug flags (DBG_foo_VALUE) */