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 49cc2fd98..f7e96fcff 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 6a7213c67..70e9e229f 100644 --- a/agent/gpg-agent.c +++ b/agent/gpg-agent.c @@ -48,6 +48,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 e22e9d58d..7b322a0b7 100644 --- a/agent/preset-passphrase.c +++ b/agent/preset-passphrase.c @@ -43,6 +43,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 059a9bdbd..4a307abc2 100644 --- a/agent/protect-tool.c +++ b/agent/protect-tool.c @@ -37,6 +37,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" |