parent
c89b8c5c4b
commit
0a6f848aa3
2 changed files with 16 additions and 0 deletions
@ -0,0 +1,7 @@ |
||||
project('pcap test', 'c') |
||||
|
||||
pcap_dep = dependency('pcap', version : '>=1.0') |
||||
|
||||
e = executable('pcap_prog', 'pcap_prog.c', dependencies : pcap_dep) |
||||
|
||||
test('pcaptest', e) |
@ -0,0 +1,9 @@ |
||||
#include <pcap/pcap.h> |
||||
|
||||
int |
||||
main() |
||||
{ |
||||
char errbuf[PCAP_ERRBUF_SIZE]; |
||||
pcap_t *p = pcap_create(NULL, errbuf); |
||||
return p == NULL; |
||||
} |
Loading…
Reference in new issue