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
984c3b2c
Commit
984c3b2c
authored
Mar 12, 2010
by
Juan Lang
Committed by
Alexandre Julliard
Mar 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Check for ifr_hwaddr member of struct ifreq.
parent
2448b8da
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
1 deletion
+30
-1
configure
configure
+17
-0
configure.ac
configure.ac
+9
-0
ifenum.c
dlls/iphlpapi/ifenum.c
+1
-1
config.h.in
include/config.h.in
+3
-0
No files found.
configure
View file @
984c3b2c
...
...
@@ -13429,6 +13429,23 @@ _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
#ifdef HAVE_NET_IF_H
# include <net/if.h>
#endif
"
if
test
"x
$ac_cv_member_struct_ifreq_ifr_hwaddr
"
=
x
""
yes
;
then
:
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
_ACEOF
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for timezone variable"
>
&5
$as_echo_n
"checking for timezone variable... "
>
&6
;
}
if
test
"
${
ac_cv_have_timezone
+set
}
"
=
set
;
then
:
...
...
configure.ac
View file @
984c3b2c
...
...
@@ -2047,6 +2047,15 @@ AC_CHECK_MEMBERS([struct icmpstat.icps_outhist],,,
#include <netinet/icmp_var.h>
#endif])
dnl Check for struct ifreq.ifr_hwaddr
AC_CHECK_MEMBERS([struct ifreq.ifr_hwaddr],,,
[#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_NET_IF_H
# include <net/if.h>
#endif])
dnl Check for the external timezone variables timezone and daylight
AC_CACHE_CHECK([for timezone variable], ac_cv_have_timezone,
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], [[timezone = 1]])],[ac_cv_have_timezone="yes"],[ac_cv_have_timezone="no"]))
...
...
dlls/iphlpapi/ifenum.c
View file @
984c3b2c
...
...
@@ -298,7 +298,7 @@ static DWORD getInterfaceMaskByName(const char *name)
return
ret
;
}
#if defined (SIOCGIFHWADDR)
#if defined (SIOCGIFHWADDR)
&& defined (HAVE_STRUCT_IFREQ_IFR_HWADDR)
static
DWORD
getInterfacePhysicalByName
(
const
char
*
name
,
PDWORD
len
,
PBYTE
addr
,
PDWORD
type
)
{
...
...
include/config.h.in
View file @
984c3b2c
...
...
@@ -777,6 +777,9 @@
/* Define to 1 if `icps_outhist' is a member of `struct icmpstat'. */
#undef HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST
/* Define to 1 if `ifr_hwaddr' is a member of `struct ifreq'. */
#undef HAVE_STRUCT_IFREQ_IFR_HWADDR
/* Define to 1 if `msg_accrights' is a member of `struct msghdr'. */
#undef HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS
...
...
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