Unbreak with clang 15: fix function detection

base-gcc test by tb@
This commit is contained in:
jca 2023-01-11 18:30:24 +00:00
parent 9ea4a48176
commit 606049478a
2 changed files with 15 additions and 0 deletions

View File

@ -1,6 +1,7 @@
COMMENT = provide an interface to create pseudo ttys
DISTNAME = IO-Tty-1.17
REVISION = 0
CATEGORIES = devel

View File

@ -0,0 +1,14 @@
Avoid invalid char to pointer conversion, fatal with clang 15.
Index: Makefile.PL
--- Makefile.PL.orig
+++ Makefile.PL
@@ -163,7 +163,7 @@ main ()
#if defined (__stub_$f) || defined (__stub___$f)
choke me
#else
-f = $f ();
+f = $f;
#endif
;