From deaa880db25022a28a8adda66a95504cdf66b08f Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 11 Nov 2024 00:56:15 +0100 Subject: [PATCH] relocatable-prog-wrapper: Fix compilation error on NetBSD 7. Reported by Ionut Cosmin Mihai in . * lib/relocwrapper.c: Fix dependency tree. * modules/relocatable-prog-wrapper (Files): Add lib/stat-time.h, lib/stat-time.c. * build-aux/install-reloc (func_create_wrapper): Compile also stat-time.c. --- ChangeLog | 11 +++++++++++ build-aux/install-reloc | 1 + lib/relocwrapper.c | 1 + modules/relocatable-prog-wrapper | 2 ++ 4 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index e10863c5db..aadd24ef8e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2024-11-10 Bruno Haible + + relocatable-prog-wrapper: Fix compilation error on NetBSD 7. + Reported by Ionut Cosmin Mihai in + . + * lib/relocwrapper.c: Fix dependency tree. + * modules/relocatable-prog-wrapper (Files): Add lib/stat-time.h, + lib/stat-time.c. + * build-aux/install-reloc (func_create_wrapper): Compile also + stat-time.c. + 2024-10-31 Bruno Haible assert-h: Allow mixed use of gcc/g++ also on Haiku 2022. diff --git a/build-aux/install-reloc b/build-aux/install-reloc index ea2e5cc6da..b471df66d9 100755 --- a/build-aux/install-reloc +++ b/build-aux/install-reloc @@ -287,6 +287,7 @@ func_create_wrapper () "$srcdir"/allocator.c \ "$srcdir"/readlink.c \ "$srcdir"/stat.c \ + "$srcdir"/stat-time.c \ "$srcdir"/canonicalize-lgpl.c \ "$srcdir"/malloc/scratch_buffer_grow.c \ "$srcdir"/malloc/scratch_buffer_grow_preserve.c \ diff --git a/lib/relocwrapper.c b/lib/relocwrapper.c index b40f88cfdf..8d28f04436 100644 --- a/lib/relocwrapper.c +++ b/lib/relocwrapper.c @@ -22,6 +22,7 @@ -> stat -> filename -> pathmax + -> stat-time -> verify -> areadlink -> careadlinkat diff --git a/modules/relocatable-prog-wrapper b/modules/relocatable-prog-wrapper index b2143809ca..21dee18a01 100644 --- a/modules/relocatable-prog-wrapper +++ b/modules/relocatable-prog-wrapper @@ -16,6 +16,8 @@ lib/allocator.h lib/allocator.c lib/readlink.c lib/stat.c +lib/stat-time.h +lib/stat-time.c lib/canonicalize-lgpl.c lib/scratch_buffer.h lib/malloc/scratch_buffer.h -- 2.39.5