aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2021-03-17 22:12:42 +0100
committerGuy Harris <gharris@sonic.net>2021-03-17 21:21:21 +0000
commit9ca121bcf87dc638d9f0bf1314bee7b906523b70 (patch)
tree4c23e9299dc5c67ef7c7e6884d76c0fdaec2640f
parentf6e0de60db488627c317460b1ec92a40052230b7 (diff)
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: 2820156fbd4b0213ca015216d8cd97c31b503c8c (Move still *more* headers outside of extern "C".)
-rw-r--r--caputils/capture-pcap-util.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/caputils/capture-pcap-util.h b/caputils/capture-pcap-util.h
index aaca7322c7..b6ceb8c8d3 100644
--- a/caputils/capture-pcap-util.h
+++ b/caputils/capture-pcap-util.h
@@ -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,