Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bc99d867
Commit
bc99d867
authored
Jun 07, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Jun 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Check for struct icmpstat (for NetBSD).
parent
20dbe912
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
1 deletion
+24
-1
configure
configure
+14
-0
configure.ac
configure.ac
+6
-0
ipstats.c
dlls/iphlpapi/ipstats.c
+1
-1
config.h.in
include/config.h.in
+3
-0
No files found.
configure
View file @
bc99d867
...
...
@@ -14028,6 +14028,20 @@ _ACEOF
fi
ac_fn_c_check_member
"
$LINENO
"
"struct icmpstat"
"icps_inhist"
"ac_cv_member_struct_icmpstat_icps_inhist"
"#ifdef HAVE_NETINET_ICMP_VAR
#include <netinet/icmp_var.h>
#endif
"
if
test
"x
$ac_cv_member_struct_icmpstat_icps_inhist
"
=
xyes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_STRUCT_ICMPSTAT_ICPS_INHIST 1
_ACEOF
fi
ac_fn_c_check_member
"
$LINENO
"
"struct icmpstat"
"icps_outhist"
"ac_cv_member_struct_icmpstat_icps_outhist"
"#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
...
...
configure.ac
View file @
bc99d867
...
...
@@ -2282,6 +2282,12 @@ AC_CHECK_MEMBERS([ns_msg._msg_ptr],,,
# include <arpa/nameser.h>
#endif])
dnl Check for struct icmpstat
AC_CHECK_MEMBERS([struct icmpstat.icps_inhist],,,
[#ifdef HAVE_NETINET_ICMP_VAR
#include <netinet/icmp_var.h>
#endif])
dnl Check for struct icmpstat.icps_outhist
AC_CHECK_MEMBERS([struct icmpstat.icps_outhist],,,
[#ifdef HAVE_SYS_TYPES_H
...
...
dlls/iphlpapi/ipstats.c
View file @
bc99d867
...
...
@@ -493,7 +493,7 @@ DWORD WINAPI GetIcmpStatistics(PMIB_ICMP stats)
}
if
(
kc
)
kstat_close
(
kc
);
}
#elif defined(HAVE_SYS_SYSCTL_H) && defined(ICMPCTL_STATS)
#elif defined(HAVE_SYS_SYSCTL_H) && defined(ICMPCTL_STATS)
&& defined(HAVE_STRUCT_ICMPSTAT_ICPS_INHIST)
{
int
mib
[]
=
{
CTL_NET
,
PF_INET
,
IPPROTO_ICMP
,
ICMPCTL_STATS
};
#define MIB_LEN (sizeof(mib) / sizeof(mib[0]))
...
...
include/config.h.in
View file @
bc99d867
...
...
@@ -791,6 +791,9 @@
/* Define to 1 if `direction' is a member of `struct ff_effect'. */
#undef HAVE_STRUCT_FF_EFFECT_DIRECTION
/* Define to 1 if `icps_inhist' is a member of `struct icmpstat'. */
#undef HAVE_STRUCT_ICMPSTAT_ICPS_INHIST
/* Define to 1 if `icps_outhist' is a member of `struct icmpstat'. */
#undef HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment