aboutsummaryrefslogtreecommitdiffstats
path: root/src/debug.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-10-07 10:58:51 +0000
committerWerner Koch <[email protected]>2010-10-07 10:58:51 +0000
commitc2ef39811db27cb28d9ce0eafc64c82d0f66df82 (patch)
tree8396b4b9fa5817b67bb5a89c402c897d65e24deb /src/debug.c
parentReturn GPG_ERR_MISSING_ISSUER_CERT. (diff)
downloadgpgme-c2ef39811db27cb28d9ce0eafc64c82d0f66df82.tar.gz
gpgme-c2ef39811db27cb28d9ce0eafc64c82d0f66df82.zip
Enable debugging feature for W32CE.
kFreeBSD portability fix.
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/debug.c b/src/debug.c
index e51ece68..6faf4aaf 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -115,12 +115,16 @@ debug_init (void)
char *e;
const char *s1, *s2;;
+#ifdef HAVE_W32CE_SYSTEM
+ e = _gpgme_w32ce_get_debug_envvar ();
+#else /*!HAVE_W32CE_SYSTEM*/
err = _gpgme_getenv ("GPGME_DEBUG", &e);
if (err)
{
UNLOCK (debug_lock);
return;
}
+#endif /*!HAVE_W32CE_SYSTEM*/
initialized = 1;
errfp = stderr;