diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2008-11-03 20:04:01 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2008-11-03 20:04:01 +0000 |
commit | 1655ca17d054004bddc0a411ce64d49551eddb6d (patch) | |
tree | ac45abc2cf294565955ca34d2af1eda9d05fbebc /capture-pcap-util-int.h | |
parent | ac5dba4586827e722a1579fcc6d3c398bd4ffd77 (diff) | |
download | wireshark-1655ca17d054004bddc0a411ce64d49551eddb6d.tar.gz |
Do not use functions for remote capture on local interfaces.
This makes it possible to compile with remote capture features on unix.
svn path=/trunk/; revision=26681
Diffstat (limited to 'capture-pcap-util-int.h')
-rw-r--r-- | capture-pcap-util-int.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/capture-pcap-util-int.h b/capture-pcap-util-int.h index ccdd54dfdb..80a60764e7 100644 --- a/capture-pcap-util-int.h +++ b/capture-pcap-util-int.h @@ -29,9 +29,9 @@ #ifdef HAVE_PCAP_REMOTE #ifdef HAVE_CONFIG_H #include <config.h> -#endif +#endif /* HAVE_CONFIG_H */ #include <pcap.h> -#endif +#endif /* HAVE_PCAP_REMOTE */ 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); @@ -39,10 +39,9 @@ extern void if_info_add_address(if_info_t *if_info, struct sockaddr *addr); #ifdef HAVE_PCAP_REMOTE extern GList *get_interface_list_findalldevs_ex(const char *source, struct pcap_rmtauth *auth, int *err, char **err_str); -#else +#endif /* HAVE_PCAP_REMOTE */ extern GList *get_interface_list_findalldevs(int *err, char **err_str); -#endif -#endif +#endif /* HAVE_PCAP_FINDALLDEVS */ /* * Get an error message string for a CANT_GET_INTERFACE_LIST error from |