Permalink
Browse files

Use one ffi_lib call.

  • Loading branch information...
1 parent 53fcf79 commit 11cd207234cba2457249f8e8923dde97333f6df7 @postmodern postmodern committed Jul 24, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/ffi/pcap.rb
View
6 lib/ffi/pcap.rb
@@ -4,11 +4,7 @@ module FFI
module PCap
extend FFI::Library
- begin
- ffi_lib 'wpcap'
- rescue LoadError
- ffi_lib ['pcap', 'libpcap.so.1']
- end
+ ffi_lib ['pcap', 'libpcap.so.1', 'wpcap']
end
Pcap = PCap

0 comments on commit 11cd207

Please sign in to comment.