From e26c4d29ca2b62a31706ef9c00fcab018a9cd905 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Fri, 4 Aug 2023 08:29:09 +0200 Subject: [PATCH] Improve compatibility with libgit2 This fixes various struct layout mismatches with libgit 1.7.0. These mismatches actually results in test failures on *some* architectures. See also: https://gitlab.com/guile-git/guile-git/-/merge_requests/32 --- git/structs.scm | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/git/structs.scm b/git/structs.scm index ca51728..2c5282c 100644 --- a/git/structs.scm +++ b/git/structs.scm @@ -135,7 +135,8 @@ ;;; git-time (define %time (bs:struct `((time ,int64) ;; time in seconds since epoch - (offset ,int)))) ;; timezone offset, in minutes + (offset ,int) ;; timezone offset, in minutes + (sign ,uint8)))) ;; indicator for questionable '-0000' offsets in signature (define-record-type