forked from osmocom/wireshark
Fix it to compile on systems without "pcap_datalink_val_to_name()" (or
with "pcap_datalink_val_to_name()" but without a declaration of it in "pcap.h" *cough* Software Update *cough*). svn path=/trunk/; revision=12858
This commit is contained in:
parent
13fd96b13d
commit
4faa0e365d
|
@ -272,7 +272,7 @@ sync_pipe_do_capture(capture_options *capture_opts, gboolean is_tempfile) {
|
|||
sprintf(ssnap,"%s",pcap_datalink_val_to_name(capture_opts->linktype));
|
||||
#else
|
||||
/* XXX - just treat it as a number */
|
||||
sprintf(ssnap,"%d",capture_opts.linktype);
|
||||
sprintf(ssnap,"%d",capture_opts->linktype);
|
||||
#endif
|
||||
argv = sync_pipe_add_arg(argv, &argc, ssnap);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue