diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2024-11-10 11:31:57 +0800 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-11-12 23:40:39 +0100 |
commit | 9793403bc0f304053c6f1bd427814482273faa26 (patch) | |
tree | 29ce55e1b789b2d007e27d65844181f8573867c4 /tests | |
parent | ab80403eeab6c2c0c140056ac04dd0d118cdac45 (diff) | |
download | guix-9793403bc0f304053c6f1bd427814482273faa26.tar.gz guix-9793403bc0f304053c6f1bd427814482273faa26.zip |
tests: Fix gremlin.scm for GCC 14
* tests/gremlin.scm: Include stdio.h before using puts since GCC 14 no
longer allows implicit declarations.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gremlin.scm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/gremlin.scm b/tests/gremlin.scm index 3dbb8d3643..280b1d8819 100644 --- a/tests/gremlin.scm +++ b/tests/gremlin.scm @@ -136,6 +136,7 @@ (with-directory-excursion directory (call-with-output-file "t.c" (lambda (port) + (display "#include <stdio.h>\n" port) (display "int main () { puts(\"hello\"); }" port))) (invoke c-compiler "t.c" "-Wl,--enable-new-dtags" "-Wl,-rpath=/foo" "-Wl,-rpath=/bar") @@ -164,6 +165,7 @@ (with-directory-excursion directory (call-with-output-file "t.c" (lambda (port) + (display "#include <stdio.h>\n" port) (display "int main () { puts(\"hello\"); }" port))) (invoke c-compiler "t.c" |