Blob Blame History Raw
Future compilers are likely not to support implicit function
declarations. Add a fake prototype so that the probes will not always
fail with such compilers.

Submitted upstream: <https://github.com/shlomif/perl-XML-LibXSLT/pull/7>

diff --git a/Makefile.PL b/Makefile.PL
index 079f8ea799071e37..d720b4868c7144f5 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -463,10 +463,11 @@ SRC
             }
         }
         else {
-
+	    # Use a fake prototype in the style of autoconf.
             $result = try_link(<<"SRC", $libs);
-blank() { return 0; }
-int t() { ${func}(); return 0; }
+char blank(void) { return 0; }
+char ${func}(void);
+int t(void) { ${func}(); return 0; }
 SRC
         }
     }