put #ifdef HAVE_LIBPCAP in it.
Add multiple-inclusion protection to capture_errs.h.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32803
f5534014-38df-0310-8fa8-
9805f1628bb7
#ifndef __PCAP_UTIL_INT_H__
#define __PCAP_UTIL_INT_H__
#ifndef __PCAP_UTIL_INT_H__
#define __PCAP_UTIL_INT_H__
extern if_info_t *if_info_new(char *name, char *description);
extern void if_info_add_address(if_info_t *if_info, struct sockaddr *addr);
#ifdef HAVE_PCAP_FINDALLDEVS
extern if_info_t *if_info_new(char *name, char *description);
extern void if_info_add_address(if_info_t *if_info, struct sockaddr *addr);
#ifdef HAVE_PCAP_FINDALLDEVS
*/
extern gchar *cant_get_if_list_error_message(const char *err_str);
*/
extern gchar *cant_get_if_list_error_message(const char *err_str);
-#endif /* HAVE_LIBPCAP */
-
#endif /* __PCAP_UTIL_INT_H__ */
#endif /* __PCAP_UTIL_INT_H__ */
*/
extern void capture_input_closed(capture_options *capture_opts);
*/
extern void capture_input_closed(capture_options *capture_opts);
struct if_stat_cache_s;
typedef struct if_stat_cache_s if_stat_cache_t;
struct if_stat_cache_s;
typedef struct if_stat_cache_s if_stat_cache_t;
* Stop gathering capture statistics.
*/
void capture_stat_stop(if_stat_cache_t *sc);
* Stop gathering capture statistics.
*/
void capture_stat_stop(if_stat_cache_t *sc);
-#endif /* HAVE_LIBPCAP */
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef __CAPTURE_ERRS_H__
+#define __CAPTURE_ERRS_H__
#ifdef _WIN32
/* error message, if WinPcap couldn't be loaded */
#ifdef _WIN32
/* error message, if WinPcap couldn't be loaded */
extern char *cant_load_winpcap_err(const char *app_name);
#endif /* _WIN32 */
extern char *cant_load_winpcap_err(const char *app_name);
#endif /* _WIN32 */
-#endif /* HAVE_LIBPCAP */
+#endif /* __CAPTURE_ERRS_H__ */
#ifndef __CAPTURE_IFINFO_H__
#define __CAPTURE_IFINFO_H__
#ifndef __CAPTURE_IFINFO_H__
#define __CAPTURE_IFINFO_H__
/*
* The list of interfaces returned by "get_interface_list()" is
* a list of these structures.
/*
* The list of interfaces returned by "get_interface_list()" is
* a list of these structures.
void free_if_capabilities(if_capabilities_t *caps);
void free_if_capabilities(if_capabilities_t *caps);
-#endif /* HAVE_LIBPCAP */
-
#endif /* __CAPTURE_IFINFO_H__ */
#endif /* __CAPTURE_IFINFO_H__ */
#ifndef __RINGBUFFER_H__
#define __RINGBUFFER_H__
#ifndef __RINGBUFFER_H__
#define __RINGBUFFER_H__
#include <stdio.h>
#include "file.h"
#include "wiretap/wtap.h"
#include <stdio.h>
#include "file.h"
#include "wiretap/wtap.h"
void ringbuf_free(void);
void ringbuf_error_cleanup(void);
void ringbuf_free(void);
void ringbuf_error_cleanup(void);
-#endif /* HAVE_LIBPCAP */
-
#endif /* ringbuffer.h */
#endif /* ringbuffer.h */