aboutsummaryrefslogtreecommitdiff
Avoid "multiple definition of `mystruct'" error from `ld`:

Submitted upstream at https://github.com/idris-lang/Idris-dev/issues/4914

--- a/test/ffi008/ffi008.h	1969-12-31 18:00:01.000000000 -0600
+++ a/test/ffi008/ffi008.h	2022-04-13 00:32:35.561262598 -0500
@@ -10,7 +10,7 @@
     int16_t b;
 };
 
-struct test2 mystruct;
+extern struct test2 mystruct;
 
 int size1(void);
 int size2(void);
--- a/test/ffi008/ffi008.c	1969-12-31 18:00:01.000000000 -0600
+++ a/test/ffi008/ffi008.c	2022-04-13 00:32:53.145186302 -0500
@@ -11,6 +11,8 @@
     return sizeof(struct test2);
 }
 
+struct test2 mystruct;
+
 void print_mystruct(void) {
     printf("a: %d b: %d\n", mystruct.a, mystruct.b);
 }
tle='2021-03-14 06:11:20 +0100'>2021-03-14gnu: unzip: Add patches from Fedora [security fixes]....Non-exhaustively fixes CVE-2016-9844, CVE-2018-1000035, CVE-2018-18384, and CVE-2019-13232. * gnu/packages/patches/unzip-COVSCAN-fix-unterminated-string.patch, gnu/packages/patches/unzip-CVE-2016-9844.patch, gnu/packages/patches/unzip-CVE-2018-1000035.patch, gnu/packages/patches/unzip-CVE-2018-18384.patch, gnu/packages/patches/unzip-case-insensitive.patch, gnu/packages/patches/unzip-alt-iconv-utf8-print.patch, gnu/packages/patches/unzip-alt-iconv-utf8.patch, gnu/packages/patches/unzip-close.patch, gnu/packages/patches/unzip-exec-shield.patch, gnu/packages/patches/unzip-fix-recmatch.patch, gnu/packages/patches/unzip-manpage-fix.patch, gnu/packages/patches/unzip-overflow.patch, gnu/packages/patches/unzip-symlink.patch, gnu/packages/patches/unzip-timestamp.patch, gnu/packages/patches/unzip-valgrind.patch, gnu/packages/patches/unzip-x-option.patch, gnu/packages/patches/unzip-zipbomb-manpage.patch, gnu/packages/patches/unzip-zipbomb-part1.patch, gnu/packages/patches/unzip-zipbomb-part2.patch, gnu/packages/patches/unzip-zipbomb-part3.patch: New patches. * gnu/local.mk (dist_patch_DATA): Register them. * gnu/packages/compression.scm (unzip/fixed): New variable. Apply patches. (unzip)[replacement]: Graft. Léo Le Bouter