diff options
author | Florian Weimer <fweimer@redhat.com> | 2023-04-22 21:37:09 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2023-04-22 21:47:09 +0200 |
commit | 51373aa9a77ef53d237edc1af664efcbb49f1bf5 (patch) | |
tree | 19b62e0a282b684527014014c382c1b0500fe625 | |
parent | 4d8de4b2fa05495d69d09e1a3d335f24d6bf33ee (diff) | |
download | elfutils-51373aa9a77ef53d237edc1af664efcbb49f1bf5.tar.gz |
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>
-rwxr-xr-x | tests/run-native-test.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/run-native-test.sh b/tests/run-native-test.sh index d19007f2..042a51c6 100755 --- 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() |