projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
589d37d
)
Collectd.pm: Check for ithread support.
author
Sebastian Harl
<sh@tokkee.org>
Wed, 14 Nov 2007 13:20:08 +0000
(14:20 +0100)
committer
Florian Forster
<octo@huhu.verplant.org>
Wed, 14 Nov 2007 14:32:21 +0000
(15:32 +0100)
Abort if perl has been compiled without ithread support (i.e.
$Config{'useithreads'} is not defined).
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
bindings/perl/Collectd.pm
patch
|
blob
|
history
diff --git
a/bindings/perl/Collectd.pm
b/bindings/perl/Collectd.pm
index
fd5632a
..
1d26d20
100644
(file)
--- a/
bindings/perl/Collectd.pm
+++ b/
bindings/perl/Collectd.pm
@@
-22,6
+22,14
@@
package Collectd;
use strict;
use warnings;
+use Config;
+
+BEGIN {
+ if (! $Config{'useithreads'}) {
+ die "Perl does not support ithreads!";
+ }
+}
+
require Exporter;
our @ISA = qw( Exporter );