File: Fix-build-with-latest-gdbm-version

package info (click to toggle)
slgdbm 1.7.1-14
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 228 kB
  • sloc: ansic: 2,355; makefile: 76
file content (21 lines) | stat: -rw-r--r-- 808 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Fix build with new gdbm
  Change gdbm_errno to new gdbm_errno_location to fix build with new
  version of gdbm.
Author: Gianfranco Costamagna <locutusofborg@debian.org>
Forwarded: yes
Reviewed-By: Dmitry Bogatov <KAction@gnu.org>
Last-Update: 2018-07-15

diff --git a/gdbm-module.c b/gdbm-module.c
index 90adb7d..ab343e2 100644
--- a/gdbm-module.c
+++ b/gdbm-module.c
@@ -1044,7 +1044,7 @@ static SLang_Intrin_Fun_Type Module_Intrinsics [] =
 static SLang_Intrin_Var_Type Module_Variables [] =
 {
    MAKE_VARIABLE("_gdbm_module_version_string", &Module_Version_String, SLANG_STRING_TYPE, 1),
-   MAKE_VARIABLE("gdbm_errno", &gdbm_errno, SLANG_INT_TYPE, 1),
+   MAKE_VARIABLE("gdbm_errno", &gdbm_errno_location, SLANG_INT_TYPE, 1),
 /*%+
  *\variable{gdbm_errno}
  *\synopsis{gdbm's error code}