From e0c533f55bc9986c41de0199f2c5e5893cbfaba1 Mon Sep 17 00:00:00 2001 From: Mikhail Teterin Date: Sat, 20 Oct 2001 15:08:13 +0000 Subject: [PATCH] If both GDBM and NDBM are defined, siag will try to use all dbm-functions, including dbm_pagfno. Our ndbm DOES NOT provide it, but instead of being quite, it defines dbm_pagfno as DBM_PAGFNO_NOT_AVAILABLE. This breaks compiles, of course. Add the patch, that was on my local system since April, to undefine the this define and let siag use dbm_pagfno implemented in libgdbm. They should be compatible... Submitted by: bento --- math/siag/files/patch-dbm | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 math/siag/files/patch-dbm diff --git a/math/siag/files/patch-dbm b/math/siag/files/patch-dbm new file mode 100644 index 000000000000..55681fa67cf4 --- /dev/null +++ b/math/siag/files/patch-dbm @@ -0,0 +1,9 @@ +--- siod/ndbm.c Thu Jun 24 05:18:57 1999 ++++ siod/ndbm.c Sun Apr 8 11:25:50 2001 +@@ -9,3 +9,6 @@ + + #include ++#if defined(GDBM) && defined(dbm_pagfno) ++# undef dbm_pagfno ++#endif +