* engine-gpgsm.c: Include more headers so that NULL and mk_error
authorWerner Koch <wk@gnupg.org>
Thu, 22 Nov 2001 10:29:52 +0000 (10:29 +0000)
committerWerner Koch <wk@gnupg.org>
Thu, 22 Nov 2001 10:29:52 +0000 (10:29 +0000)
is defined even with an undefined GPGSM_PATH.

trunk/gpgme/ChangeLog
trunk/gpgme/engine-gpgsm.c

index d2707521a744aab0a384bc618908bc30b445f12b..fb2ab2d0c2d462cb78036d628dd9e79bec44a1fb 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-22  Werner Koch  <wk@gnupg.org>
+
+       * engine-gpgsm.c: Include more headers so that NULL and mk_error
+       is defined even with an undefined GPGSM_PATH.
+
 2001-11-22  Marcus Brinkmann  <marcus@g10code.de>
 
        * rungpg.c (gpg_inbound_handler, write_mem_data, write_cb_data,
index 87a00393904dd3dc682956c7cb0aba7abc863bec..a27b3545bb445f2a641d57c42a0866ac18fc44af 100644 (file)
 #define ENABLE_GPGSM 1
 #endif
 
-#ifdef ENABLE_GPGSM
-
 #include <sys/types.h>
 #include <assert.h>
 
+#ifdef ENABLE_GPGSM
 /* FIXME */
 #include "../assuan/assuan-defs.h"
 #undef xtrymalloc
 #undef xtrycalloc
 #undef xtryrealloc
 #undef xfree
+#endif /*ENABLE_GPGSM*/
 
 #include "gpgme.h"
 #include "util.h"
@@ -47,6 +47,8 @@
 #include "wait.h"
 #include "io.h"
 
+#ifdef ENABLE_GPGSM
+
 #include "engine-gpgsm.h"
 
 #include "assuan.h"