https://github.com/toddr/IO-Tty/pull/24 Modernize spec using %{make_build} and %{make_install}
29 lines
698 B
Diff
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
|
|
|