Skip to content

Commit

Permalink
build: fix detection of libpcap on Ubuntu 23.04
Browse files Browse the repository at this point in the history
Beginning with version 1.10.2, pcap-config treats
unrecognized command-line options as an error.

Change-Id: Iba62d6d4586cf505c68032338048d04597baff96
  • Loading branch information
Pesa committed Apr 25, 2023
1 parent 3653dae commit 003e45a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/dump/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
top = '../..'

def configure(conf):
conf.check_cfg(package='libpcap', uselib_store='PCAP',
path='pcap-config', args='--libs --cflags')
conf.check_cfg(msg='Checking for libpcap',
path='pcap-config', args='--cflags --libs',
package='', uselib_store='PCAP')
conf.check_cxx(msg='Checking if struct tcphdr has member th_off ',
define_name='HAVE_BSD_TCPHDR', mandatory=False,
fragment='''#include <netinet/tcp.h>
Expand Down

0 comments on commit 003e45a

Please sign in to comment.