⛏️ index : haiku.git

author Sam Roberts <sam@smrobtzz.dev> 2025-10-09 11:56:42.0 -04:00:00
committer waddlesplash <waddlesplash@gmail.com> 2025-10-09 16:39:23.0 +00:00:00
commit
262dd3c9d901aff46afaeb4e1d9ac7e9be390c36 [patch]
tree
7d77d8f54b09b0a0375f43bbf6acca2f9eaa6d98
parent
47538c534fe0aadc626c09d121773fee8ea10d71
download
262dd3c9d901aff46afaeb4e1d9ac7e9be390c36.tar.gz

unzip: Compile with std=c99

Allows building with GCC >=15, which defaults to c23 and disallows
function declarations without parameters and old-style function
declarations.

Fixes #19584

Change-Id: Idb141b804e80d3909558abecd2c74538cb3766ae
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9684
Reviewed-by: waddlesplash <waddlesplash@gmail.com>

Diff

 src/tools/unzip/Jamfile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/tools/unzip/Jamfile b/src/tools/unzip/Jamfile
index 7a76064..5610efa 100644
--- a/src/tools/unzip/Jamfile
+++ b/src/tools/unzip/Jamfile
@@ -1,5 +1,7 @@
SubDir HAIKU_TOP src tools unzip ;

SubDirCcFlags -std=c99 ;

SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src bin unzip ] ;

DEFINES += NO_CRYPT HAS_JUNK_EXTRA_FIELD_OPTION=1 ;