forked from osmocom/wireshark
caputils: fix compilation without pcap.
The extern declaration must be put outside the ifdef to match the closing statement as well as surrounding al the functions. Fixes:2820156fbd
(Move still *more* headers outside of extern "C".) (cherry picked from commit9ca121bcf8
)
This commit is contained in:
parent
95c7c1c0f2
commit
2974b30150
|
@ -11,6 +11,10 @@
|
|||
#ifndef __CAPTURE_PCAP_UTIL_H__
|
||||
#define __CAPTURE_PCAP_UTIL_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#ifdef HAVE_LIBPCAP
|
||||
|
||||
#include "wspcap.h"
|
||||
|
@ -26,10 +30,6 @@
|
|||
*/
|
||||
#define MIN_PACKET_SIZE 1 /* minimum amount of packet data we can read */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
GList *get_interface_list(int *err, char **err_str);
|
||||
#ifdef HAVE_PCAP_REMOTE
|
||||
GList *get_remote_interface_list(const char *hostname, const char *port,
|
||||
|
|
Loading…
Reference in New Issue