https://github.com/plougher/squashfs-tools/commit/fe2f5da4b0f8994169c53e84b7cb8a0feefc97b5.patch
Index: patches/patch-squashfs-tools_mksquashfs_h =================================================================== RCS file: /cvs/ports/sysutils/squashfs-tools/patches/patch-squashfs-tools_mksquashfs_h,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 patch-squashfs-tools_mksquashfs_h --- patches/patch-squashfs-tools_mksquashfs_h 16 Dec 2019 15:35:26 -0000 1.1.1.1 +++ patches/patch-squashfs-tools_mksquashfs_h 30 Jan 2021 10:57:40 -0000 @@ -2,6 +2,9 @@ $OpenBSD: patch-squashfs-tools_mksquashf https://github.com/plougher/squashfs-tools/pull/69 +squashfs-tools: fix build failure against gcc-10 +fe2f5da4b0f8994169c53e84b7cb8a0feefc97b5 + Index: squashfs-tools/mksquashfs.h --- squashfs-tools/mksquashfs.h.orig +++ squashfs-tools/mksquashfs.h @@ -13,3 +16,12 @@ Index: squashfs-tools/mksquashfs.h struct dir_info { char *pathname; +@@ -143,7 +144,7 @@ struct append_file { + #endif + + extern struct cache *reader_buffer, *fragment_buffer, *reserve_cache; +-struct cache *bwriter_buffer, *fwriter_buffer; ++extern struct cache *bwriter_buffer, *fwriter_buffer; + extern struct queue *to_reader, *to_deflate, *to_writer, *from_writer, + *to_frag, *locked_fragment, *to_process_frag; + extern struct append_file **file_mapping;
