Handle systems that are not FreeBSD
authorJamie Cameron <jcameron@webmin.com>
Sat, 23 Feb 2008 22:42:47 +0000 (22:42 +0000)
committerJamie Cameron <jcameron@webmin.com>
Sat, 23 Feb 2008 22:42:47 +0000 (22:42 +0000)
ipfw/ipfw-lib.pl

index b2ab2f2..4aa5a82 100644 (file)
@@ -8,7 +8,9 @@ do '../web-lib.pl';
 do '../ui-lib.pl';
 if (&foreign_check("net")) {
        &foreign_require("net", "net-lib.pl");
-       $has_net_lib = 1;
+       if (defined(&net::get_rc_conf)) {
+               $has_net_lib = 1;
+               }
        }
 
 # Work out save file