aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/gpgme.h.in11
2 files changed, 15 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 1dcdb218..e2ac1439 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-05 Marcus Brinkmann <[email protected]>
+
+ * gpgme.h.in: Add compile time check for _FILE_OFFSET_BITS.
+
2009-04-15 Marcus Brinkmann <[email protected]>
* posix-io.c (_gpgme_io_socket, _gpgme_io_connect): New functions.
diff --git a/src/gpgme.h.in b/src/gpgme.h.in
index 65823a66..474be73d 100644
--- a/src/gpgme.h.in
+++ b/src/gpgme.h.in
@@ -74,6 +74,17 @@ extern "C" {
library. */
#define GPGME_VERSION "@PACKAGE_VERSION@"
+/* Check for a matching _FILE_OFFSET_BITS definition. */
+#if @NEED__FILE_OFFSET_BITS@
+#ifndef _FILE_OFFSET_BITS
+#error GPGME was compiled with _FILE_OFFSET_BITS = @NEED__FILE_OFFSET_BITS@, please see the section "Largefile support (LFS)" in the GPGME manual.
+#else
+#if (_FILE_OFFSET_BITS) != (@NEED__FILE_OFFSET_BITS@)
+#error GPGME was compiled with a different value for _FILE_OFFSET_BITS, namely @NEED__FILE_OFFSET_BITS@, please see the section "Largefile support (LFS)" in the GPGME manual.
+#endif
+#endif
+#endif
+
/* Some opaque data types used by GPGME. */