gentoo-ebuilds/dev-java/byaccj/files/byaccj-1.15-implicit-function-declaration.patch
Sam James cf69755807
dev-java/byaccj: add upstream bug ref for clang16 patch
Signed-off-by: Sam James <sam@gentoo.org>
2023-01-13 08:22:43 +00:00

17 lines
496 B
Diff
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

https://sourceforge.net/p/byaccj/patches/5/
main.c: In function done:
main.c:88:43: error: implicit declaration of function -Werror=implicit-function-declaration
88 | if (action_file) { fclose(action_file); unlink(action_file_name); }
| ^~~~~~
--- a/src/main.c
+++ b/src/main.c
@@ -2,6 +2,8 @@
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
+
#ifndef __WIN32__ /*rwj -- make portable*/
#include <signal.h>
#else