diff options
Diffstat (limited to 'agent')
-rw-r--r-- | agent/agent.h | 1 | ||||
-rw-r--r-- | agent/gpg-agent.c | 1 | ||||
-rw-r--r-- | agent/preset-passphrase.c | 1 | ||||
-rw-r--r-- | agent/protect-tool.c | 1 | ||||
-rw-r--r-- | agent/t-protect.c | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/agent/agent.h b/agent/agent.h index e934ec8db..e10e02b8c 100644 --- a/agent/agent.h +++ b/agent/agent.h @@ -55,6 +55,7 @@ /* A large struct name "opt" to keep global flags */ +EXTERN_UNLESS_MAIN_MODULE struct { unsigned int debug; /* Debug flags (DBG_foo_VALUE) */ diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c index 793fc44eb..27cb70cf3 100644 --- a/agent/gpg-agent.c +++ b/agent/gpg-agent.c @@ -49,6 +49,7 @@ #endif #include <npth.h> +#define INCLUDED_BY_MAIN_MODULE 1 #define GNUPG_COMMON_NEED_AFLOCAL #include "agent.h" #include <assuan.h> /* Malloc hooks and socket wrappers. */ diff --git a/agent/preset-passphrase.c b/agent/preset-passphrase.c index 7a9ea1b44..3b402598f 100644 --- a/agent/preset-passphrase.c +++ b/agent/preset-passphrase.c @@ -44,6 +44,7 @@ # include <windows.h> /* To initialize the sockets. fixme */ #endif +#define INCLUDED_BY_MAIN_MODULE 1 #include "agent.h" #include "../common/simple-pwquery.h" #include "../common/i18n.h" diff --git a/agent/protect-tool.c b/agent/protect-tool.c index ec7b47695..3bba5c6ba 100644 --- a/agent/protect-tool.c +++ b/agent/protect-tool.c @@ -38,6 +38,7 @@ #include <fcntl.h> /* for setmode() */ #endif +#define INCLUDED_BY_MAIN_MODULE 1 #include "agent.h" #include "../common/i18n.h" #include "../common/get-passphrase.h" diff --git a/agent/t-protect.c b/agent/t-protect.c index d17c19325..88b552585 100644 --- a/agent/t-protect.c +++ b/agent/t-protect.c @@ -23,6 +23,7 @@ #include <stdlib.h> #include <assert.h> +#define INCLUDED_BY_MAIN_MODULE 1 #include "agent.h" |