gentoo-ebuilds/app-admin/killproc/files/killproc-2.13-fix_c23.patch
Nicolas PARLANT 634b8d8de6
app-admin/killproc: fix c23, update to EAPI 8
Closes: https://bugs.gentoo.org/943846
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/43713
Closes: https://github.com/gentoo/gentoo/pull/43713
Signed-off-by: Sam James <sam@gentoo.org>
2025-09-11 04:28:06 +01:00

15 lines
355 B
Diff

https://bugs.gentoo.org/943846
--- a/libinit.h
+++ b/libinit.h
@@ -107,7 +107,11 @@
#define DEFPIDEXT ".pid"
#define DEFPIDLEN 14 /* The string length of /var/run/.pid + 1 */
+#if __STDC_VERSION__ <= 201710L
typedef enum _boolean {false, true} boolean;
+#else
+typedef bool boolean;
+#endif
extern char **environ;
extern char * newenvp[];