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".)
This commit is contained in:
Dario Lombardo 2021-03-17 22:12:42 +01:00 committed by Guy Harris
parent f6e0de60db
commit 9ca121bcf8
1 changed files with 4 additions and 4 deletions

View File

@ -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,