Files
gentoo/sys-process/tiptop/files/tiptop-2.3.1-implicit-function-declaration.patch
Pascal Jäger 4ecc97f4be sys-process/tiptop: fix build for clang16
- new upstream website

Closes: https://bugs.gentoo.org/884361

Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
Closes: https://github.com/gentoo/gentoo/pull/28644
Signed-off-by: Sam James <sam@gentoo.org>
2022-12-16 05:03:30 +00:00

36 lines
883 B
Diff

Date: Sun, 11 Dec 2022 22:11:42 +0100
Subject: [PATCH] Fix build for sys-devel/reflex
When LEX=reflex is used, this compiling calc.lex fails with a
implicit function declaration error when
Werror=implicit-function-declaration. (Like with clang16)
Bug: https://bugs.gentoo.org/884361
PR to upstream this: https://github.com/FeCastle/tiptop/pull/9
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
Clang16 will not allow implicit function declarations by default
--- a/src/calc.lex
+++ b/src/calc.lex
@@ -11,6 +11,7 @@
%{
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include "formula-parser.h"
#include "y.tab.h"
--- a/src/process.h
+++ b/src/process.h
@@ -95,4 +95,6 @@ void reset_values(const struct process_list* const);
void update_name_cmdline(int pid, int name_only);
+void handle_error(int retval);
+
#endif /* _PROCESS_H */
--
2.38.1