perl-IO-Tty/0001-Make-function-tests-more-robust.patch
Troy Dawson a6f24eec68 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/perl-IO-Tty#6bdeb47bf632c648a7953cb91cbb224a9be95863
2020-10-14 13:07:36 -07:00

29 lines
698 B
Diff

From 1747cdf9f98cfd3aada9bf6c09f9d46297e18a5e Mon Sep 17 00:00:00 2001
From: Paul Howarth <paul@city-fan.org>
Date: Sat, 22 Aug 2020 13:16:00 +0100
Subject: [PATCH] Make function tests more robust
Actually try calling the function rather than just referencing it.
This prevents some false-positive function detections, such as seen in
https://github.com/toddr/IO-Tty/issues/23
---
Makefile.PL | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.PL b/Makefile.PL
index 3ff081b..25824d1 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -160,7 +160,7 @@ main ()
#if defined (__stub_$f) || defined (__stub___$f)
choke me
#else
-f = $f;
+f = $f ();
#endif
;
--
2.26.2