summaryrefslogtreecommitdiffstats
path: root/tools/gpgsplit.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2017-04-11 06:52:19 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2017-04-11 06:52:19 +0200
commit03d77b60befa4e2f8437a80ac429cca3e54688f8 (patch)
tree043fe6c91f2a7de03091f2ab610d5bea70e9b937 /tools/gpgsplit.c
parentg10: Minor clean up for TOFU. (diff)
downloadgnupg2-03d77b60befa4e2f8437a80ac429cca3e54688f8.tar.xz
gnupg2-03d77b60befa4e2f8437a80ac429cca3e54688f8.zip
g10,tools: Fix bzlib.h include order.
* g10/compress-bz2.c: Include bzlib.h after gcrypt.h. * tools/gpgsplit.c: Likewise. -- bzlib.h may include windows.h on Windows. It is better after gcrypt.h which may include winsock2.h. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'tools/gpgsplit.c')
-rw-r--r--tools/gpgsplit.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/gpgsplit.c b/tools/gpgsplit.c
index ce2777d3a..b9787b182 100644
--- a/tools/gpgsplit.c
+++ b/tools/gpgsplit.c
@@ -32,9 +32,6 @@
#ifdef HAVE_ZIP
# include <zlib.h>
#endif
-#ifdef HAVE_BZIP2
-# include <bzlib.h>
-#endif /* HAVE_BZIP2 */
#if defined(__riscos__) && defined(USE_ZLIBRISCOS)
# include "zlib-riscos.h"
#endif
@@ -43,6 +40,10 @@
#include "../common/util.h"
#include "../common/openpgpdefs.h"
+#ifdef HAVE_BZIP2
+# include <bzlib.h>
+#endif /* HAVE_BZIP2 */
+
static int opt_verbose;
static const char *opt_prefix = "";
static int opt_uncompress;