aboutsummaryrefslogtreecommitdiffstats
path: root/caputils/capture-pcap-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'caputils/capture-pcap-util.c')
-rw-r--r--caputils/capture-pcap-util.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/caputils/capture-pcap-util.c b/caputils/capture-pcap-util.c
index 80304011d1..4a743558bc 100644
--- a/caputils/capture-pcap-util.c
+++ b/caputils/capture-pcap-util.c
@@ -823,12 +823,13 @@ linktype_name_to_val(const char *linktype)
* rest-of-the-universe libpcap.
*/
int
-get_pcap_datalink(pcap_t *pch, const char *devicename
-#ifndef _AIX
- _U_)
+get_pcap_datalink(pcap_t *pch,
+#ifdef _AIX
+ const char* devicename
#else
- )
+ const char* devicename _U_
#endif
+ )
{
int datalink;
#ifdef _AIX
@@ -1257,11 +1258,11 @@ get_if_capabilities_pcap_create(interface_options *interface_opts,
}
pcap_t *
-open_capture_device_pcap_create(capture_options *capture_opts
+open_capture_device_pcap_create(
#if defined(HAVE_PCAP_SET_TSTAMP_PRECISION) || defined (HAVE_PCAP_SET_TSTAMP_TYPE)
- ,
+ capture_options* capture_opts,
#else
- _U_,
+ capture_options* capture_opts _U_,
#endif
interface_options *interface_opts, int timeout,
cap_device_open_err *open_err,