Only include libgen.h when we have it. use pbbasename if we do not. Also fixes #223.
[rrdtool.git] / examples / stripes.pl.in
index 5187a56..362f499 100755 (executable)
@@ -38,7 +38,7 @@ RRDs::graph "stripes.png",
   "COMMENT:alpha=TIME,1200,%,600,LT,a,UNKN,IF",
   "COMMENT:beta=TIME,1200,%,600,GE,b,UNKN,IF\\j";
 if ($ERROR = RRDs::error) {
-  print "ERROR: $ERROR\n";
+  die "ERROR: $ERROR\n";
 };