gentoo-ebuilds/dev-perl/Tk/files/Tk-804.036-configure-clang16.patch
Sam James 164c0cdd48
dev-perl/Tk: fix configure w/ clang 16, backport other crash fixes
But still doesn't build w/ clang 16.

Bug: https://bugs.gentoo.org/883391
Signed-off-by: Sam James <sam@gentoo.org>
2023-02-11 04:24:06 +00:00

40 lines
1,016 B
Diff

https://github.com/eserte/perl-tk/pull/79
https://github.com/eserte/perl-tk/pull/80
From f7565b07f40e0cc3820e8fb0c3d2e7b5abb5eeeb Mon Sep 17 00:00:00 2001
From: Christopher Chavez <chrischavez@gmx.us>
Date: Fri, 12 Mar 2021 07:24:18 -0600
Subject: [PATCH] Fix some implicit function declarations
Hstrdup.c: missing stdlib.h for exit()
Hstrtoul.c: missing string.h for strcmp()
--- a/pTk/config/Hstrdup.c
+++ b/pTk/config/Hstrdup.c
@@ -1,3 +1,4 @@
+#include <stdlib.h>
#include <string.h>
#define STRING "Whatever"
--- a/pTk/config/Hstrtoul.c
+++ b/pTk/config/Hstrtoul.c
@@ -1,4 +1,5 @@
#include <stdlib.h>
+#include <string.h>
int main()
{char *e;
From 47219864d6ef3fe0c5616cada78e3008447a96a1 Mon Sep 17 00:00:00 2001
From: Christopher Chavez <chrischavez@gmx.us>
Date: Fri, 12 Mar 2021 07:28:22 -0600
Subject: [PATCH] signedchar.c: use int main to avoid C99 warning
--- a/config/signedchar.c
+++ b/config/signedchar.c
@@ -1,4 +1,4 @@
-main()
+int main()
{
signed char x = 'a';
return (x - 'a');