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
20dbe912
Commit
20dbe912
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 udpstat (for NetBSD).
parent
69dda4cd
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 @
20dbe912
...
...
@@ -14128,6 +14128,20 @@ _ACEOF
fi
ac_fn_c_check_member
"
$LINENO
"
"struct udpstat"
"udps_ipackets"
"ac_cv_member_struct_udpstat_udps_ipackets"
"#ifdef HAVE_NETINET_UDP_VAR_H
#include <netinet/udp_var.h>
#endif
"
if
test
"x
$ac_cv_member_struct_udpstat_udps_ipackets
"
=
xyes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS 1
_ACEOF
fi
ac_fn_c_check_member
"
$LINENO
"
"struct ifreq"
"ifr_hwaddr"
"ac_cv_member_struct_ifreq_ifr_hwaddr"
"#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
...
...
configure.ac
View file @
20dbe912
...
...
@@ -2342,6 +2342,12 @@ AC_CHECK_MEMBERS([struct tcp_stats.tcps_connattempt],,,
#include <netinet/tcp_var.h>
#endif])
dnl Check for struct udpstat
AC_CHECK_MEMBERS([struct udpstat.udps_ipackets],,,
[#ifdef HAVE_NETINET_UDP_VAR_H
#include <netinet/udp_var.h>
#endif])
dnl Check for struct ifreq.ifr_hwaddr
AC_CHECK_MEMBERS([struct ifreq.ifr_hwaddr],,,
[#ifdef HAVE_SYS_TYPES_H
...
...
dlls/iphlpapi/ipstats.c
View file @
20dbe912
...
...
@@ -927,7 +927,7 @@ DWORD WINAPI GetUdpStatistics(PMIB_UDPSTATS stats)
}
if
(
kc
)
kstat_close
(
kc
);
}
#elif defined(HAVE_SYS_SYSCTL_H) && defined(UDPCTL_STATS)
#elif defined(HAVE_SYS_SYSCTL_H) && defined(UDPCTL_STATS)
&& defined(HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS)
{
int
mib
[]
=
{
CTL_NET
,
PF_INET
,
IPPROTO_UDP
,
UDPCTL_STATS
};
#define MIB_LEN (sizeof(mib) / sizeof(mib[0]))
...
...
include/config.h.in
View file @
20dbe912
...
...
@@ -866,6 +866,9 @@
/* Define to 1 if `tcps_connattempt' is a member of `struct tcp_stats'. */
#undef HAVE_STRUCT_TCP_STATS_TCPS_CONNATTEMPT
/* Define to 1 if `udps_ipackets' is a member of `struct udpstat'. */
#undef HAVE_STRUCT_UDPSTAT_UDPS_IPACKETS
/* Define to 1 if the system has the type `struct xinpgen'. */
#undef HAVE_STRUCT_XINPGEN
...
...
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