summaryrefslogtreecommitdiff
path: root/dev-libs/elfutils/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-04-24 00:08:50 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-04-24 00:08:50 +0100
commitb2523734e380d060074602eb5ce53daf7d98803b (patch)
tree0f6e9c0a8339a7e6bb0b44089507392951245899 /dev-libs/elfutils/files
parent622b78d0d832282505f685f2f442c34ea0e8a7b1 (diff)
gentoo auto-resync : 24:04:2023 - 00:08:50
Diffstat (limited to 'dev-libs/elfutils/files')
-rw-r--r--dev-libs/elfutils/files/elfutils-0.189-clang16-tests.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-libs/elfutils/files/elfutils-0.189-clang16-tests.patch b/dev-libs/elfutils/files/elfutils-0.189-clang16-tests.patch
new file mode 100644
index 000000000000..8dede51cbb23
--- /dev/null
+++ b/dev-libs/elfutils/files/elfutils-0.189-clang16-tests.patch
@@ -0,0 +1,26 @@
+https://sourceware.org/git/?p=elfutils.git;a=commit;h=51373aa9a77ef53d237edc1af664efcbb49f1bf5
+
+From 51373aa9a77ef53d237edc1af664efcbb49f1bf5 Mon Sep 17 00:00:00 2001
+From: Florian Weimer <fweimer@redhat.com>
+Date: Sat, 22 Apr 2023 21:37:09 +0200
+Subject: [PATCH] testsuite: Avoid C99 compatibility issues in
+ run-native-test.sh
+
+Include <unistd.h> for the pause function, and add the return type
+of main. Avoids an implicit function declaration and implicit int.
+
+Signed-off-by: Florian Weimer <fweimer@redhat.com>
+--- a/tests/run-native-test.sh
++++ b/tests/run-native-test.sh
+@@ -27,7 +27,8 @@
+ # in all builds.
+
+ tempfiles native.c native
+-echo 'main () { while (1) pause (); }' > native.c
++printf '#include <unistd.h>\nint main (void) { while (1) pause (); }\n' \
++ > native.c
+
+ native=0
+ kill_native()
+--
+2.31.1