aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/gpg
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-09-26 09:35:40 +0000
committerJustus Winter <[email protected]>2016-09-26 14:54:57 +0000
commit3703a4723899d7563937b4b99f5bbe4dd8d3dfed (patch)
tree247cea864252c3774c56df74cd1ee9dfc1881d22 /lang/python/gpg
parentFix spelling (diff)
downloadgpgme-3703a4723899d7563937b4b99f5bbe4dd8d3dfed.tar.gz
gpgme-3703a4723899d7563937b4b99f5bbe4dd8d3dfed.zip
python: Include 'config.h'.
* lang/python/Makefile.am: Pass 'top_builddir' to 'setup.py'. * lang/python/gpgme.i: Include 'config.h'. * lang/python/helpers.c: Likewise. * lang/python/helpers.h: Likewise. * lang/python/setup.py.in: Make sure that 'config.h' can be found. -- Fixes build on 32 bit platforms with large file support. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
-rw-r--r--lang/python/gpgme.i8
1 files changed, 8 insertions, 0 deletions
diff --git a/lang/python/gpgme.i b/lang/python/gpgme.i
index 84addae2..a4672e13 100644
--- a/lang/python/gpgme.i
+++ b/lang/python/gpgme.i
@@ -547,6 +547,10 @@
some structs, which we provide prior to including the version for
SWIG. */
%{
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <gpgme.h>
%}
@@ -575,6 +579,10 @@ struct _gpgme_sig_notation
/* Now include our local modified version. Any structs defined above
are ignored. */
+#ifdef HAVE_CONFIG_H
+%include "config.h"
+#endif
+
%include "gpgme.h"
%include "errors.i"