From f3ce9030daa6be01bd16d9b88fd4c344af1816b8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Thu, 18 May 2017 18:08:31 +0200
Subject: [PATCH] Build [Gdbm]: Support building with gdbm 1.13.

Fixes obscure compilation error when building with gdbm 1.13
due to a symbol clash with the symbol "fatal" used as an argument
in the macro defintion of gdbm_set_errno().

Thanks to Andrew Kosteltsev for the report (in G+).
---
 src/modules/Gdbm/gdbmmod.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/modules/Gdbm/gdbmmod.c b/src/modules/Gdbm/gdbmmod.c
index f6d6e58b32..13ca3e5709 100644
--- a/src/modules/Gdbm/gdbmmod.c
+++ b/src/modules/Gdbm/gdbmmod.c
@@ -20,6 +20,9 @@
 
 #if defined(HAVE_GDBM_H) && defined(HAVE_LIBGDBM)
 
+/* This symbol conflicts with the Gdbm 1.13 header files. */
+#undef fatal
+
 #include <gdbm.h>
 
 #ifdef _REENTRANT
-- 
GitLab