Subject: | feature tests need scoping [PATCH] |
The feature tests introduce variables, which doesn't work with strict C89 settings. Patch attached.
Subject: | 0001-The-tested-code-needs-to-have-its-own-scope.patch |
From fcd6b8a4cb23e22e894ad96e223c5ef81ba9cc7c Mon Sep 17 00:00:00 2001
From: Jarkko Hietaniemi <jhi@iki.fi>
Date: Tue, 7 Oct 2014 20:57:24 +0200
Subject: [PATCH] The tested code needs to have its own scope.
Otherwise e.g. declaring variables will die with strict C89.
---
cpan/Socket/Makefile.PL | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpan/Socket/Makefile.PL b/cpan/Socket/Makefile.PL
index 0eadd3f..0198deb 100644
--- a/cpan/Socket/Makefile.PL
+++ b/cpan/Socket/Makefile.PL
@@ -46,7 +46,7 @@ int main(int argc, char *argv[])
{
(void)argc;
(void)argv;
- $main
+ { $main }
return 0;
}
EOF
--
2.1.0