perl-IO-Tty/0001-Make-function-tests-more-robust.patch
Paul Howarth 6bdeb47bf6 Fix FTBFS due to false detection of strlcpy() and _getpty()
https://github.com/toddr/IO-Tty/pull/24

Modernize spec using %{make_build} and %{make_install}
2020-08-22 13:56:57 +01: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