summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorNuno Carvalho <smash@cpan.org>2017-08-31 13:15:02 +0100
committerNuno Carvalho <smash@cpan.org>2017-08-31 13:15:02 +0100
commite02bfc46c361289853dae1cb6e26a929cfa5a442 (patch)
tree49fc7484d2234e5c5a4171f3155da54f617a8c8e /inc
parent4883b789e40c549ef360b7c8cd055a9a41d13930 (diff)
New upstream version 0.85
Diffstat (limited to 'inc')
-rw-r--r--inc/MyBuilder.pm8
1 files changed, 6 insertions, 2 deletions
diff --git a/inc/MyBuilder.pm b/inc/MyBuilder.pm
index fd1d5f6..d6d2db1 100644
--- a/inc/MyBuilder.pm
+++ b/inc/MyBuilder.pm
@@ -84,13 +84,17 @@ sub ACTION_code {
my $vsnprintf = 'undef HAVE_VSNPRINTF';
$vsnprintf = 'define HAVE_VSNPRINTF 1' if Config::AutoConf->check_func('vsnprintf');
+ my $strlcat = 'undef HAVE_STRLCAT';
+ $strlcat = 'define HAVE_STRLCAT 1' if Config::AutoConf->check_func('strlcat');
+
_interpolate("btparse/src/bt_config.h.in",
"btparse/src/bt_config.h",
PACKAGE => "\"libbtparse\"",
FPACKAGE => "\"libbtparse $version\"",
VERSION => "\"$version\"",
ALLOCA_H => $alloca_h,
- VSNPRINTF => $vsnprintf
+ VSNPRINTF => $vsnprintf,
+ STRLCAT => $strlcat
);
@@ -383,7 +387,7 @@ sub ACTION_test {
sub _interpolate {
my ($from, $to, %config) = @_;
-
+
print "Creating new '$to' from '$from'.\n";
open FROM, $from or die "Cannot open file '$from' for reading.\n";
open TO, ">", $to or die "Cannot open file '$to' for writing.\n";