aboutsummaryrefslogtreecommitdiff
path: root/src/gdbmexp.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2017-12-23 23:27:20 +0200
committerSergey Poznyakoff <gray@gnu.org>2017-12-23 23:27:20 +0200
commit272713d611c55effeaf1d2b45fbb2c69d70e4c74 (patch)
treef51fba38601f1677f5e7db68db8708accaa5f3d0 /src/gdbmexp.c
parentd9e81e89a543614aeac3b1d767ef2e06a2c1a349 (diff)
downloadgdbm-272713d611c55effeaf1d2b45fbb2c69d70e4c74.tar.gz
gdbm-272713d611c55effeaf1d2b45fbb2c69d70e4c74.tar.bz2
Fix build with --enable-gdbm-export
* THANKS: Add Jakub Bogusz * export/export.c: Define GDBM_EXPORT_18 prior to including gdbmexp.c * src/gdbmexp.c [GDBM_EXPORT_18]: Define GDBM_SET_ERRNO and GDBM_ASSERT_CONSISTENCY.
Diffstat (limited to 'src/gdbmexp.c')
-rw-r--r--src/gdbmexp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gdbmexp.c b/src/gdbmexp.c
index 457f638..dc46c50 100644
--- a/src/gdbmexp.c
+++ b/src/gdbmexp.c
@@ -21,8 +21,13 @@
# include "autoconf.h"
# include <arpa/inet.h>
+#ifdef GDBM_EXPORT_18
+# define GDBM_SET_ERRNO(dbf, ec, fatal) gdbm_errno = ec
+# define GDBM_ASSERT_CONSISTENCY(dbf, val)
+#else
# include "gdbmdefs.h"
# include "gdbm.h"
+#endif
int
gdbm_export_to_file (GDBM_FILE dbf, FILE *fp)

Return to:

Send suggestions and report system problems to the System administrator.