$OpenBSD: patch-Makefile_PL,v 1.1 2010/10/07 10:20:27 sthen Exp $
--- Makefile.PL.orig	Thu Oct  7 11:16:00 2010
+++ Makefile.PL	Thu Oct  7 11:16:14 2010
@@ -530,8 +530,7 @@ sub have_functions {
     my @funcs = ();
     print "detecting available functions... ";
 
-    my @paths = DynaLoader::dl_findfile(qw(-lpcap));
-    my $libref = DynaLoader::dl_load_file($paths[0]);
+    my $libref = DynaLoader::dl_load_file("libpcap.so");
 
     for my $func (@_) {
         my $symref = DynaLoader::dl_find_symbol($libref, $func);
