summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2007-09-25 14:29:53 +0200
committerTobi Oetiker <tobi@oetiker.ch>2007-09-25 14:29:53 +0200
commit4e23d2b3b310038131e8952aef1150c392b4f448 (patch)
treefea065a8487816643a73ababa82a9f3e5f928b04 /lib/Smokeping
parent7b910a7d34a768f75e03ce357a0e8446e3237677 (diff)
downloadsmokeping-4e23d2b3b310038131e8952aef1150c392b4f448.tar.gz
smokeping-4e23d2b3b310038131e8952aef1150c392b4f448.tar.xz
updated to config grammar 1.10
Diffstat (limited to 'lib/Smokeping')
-rw-r--r--lib/Smokeping/Config.pm15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/Smokeping/Config.pm b/lib/Smokeping/Config.pm
new file mode 100644
index 0000000..6c92e19
--- /dev/null
+++ b/lib/Smokeping/Config.pm
@@ -0,0 +1,15 @@
+# provide backward compatibility for Config::Grammar
+package Smokeping::Config;
+
+BEGIN {
+ require Config::Grammar;
+ if($Config::Grammar::VERSION ge '1.10') {
+ require Config::Grammar::Dynamic;
+ @ISA = qw(Config::Grammar::Dynamic);
+ }
+ else {
+ @ISA = qw(Config::Grammar);
+ }
+}
+
+1;