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
68f2db29
Commit
68f2db29
authored
Jan 29, 2009
by
Austin English
Committed by
Alexandre Julliard
Jan 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Check for xinpgen struct.
parent
d7e846cc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
178 additions
and
3 deletions
+178
-3
configure
configure
+148
-0
configure.ac
configure.ac
+24
-0
ipstats.c
dlls/iphlpapi/ipstats.c
+3
-3
config.h.in
include/config.h.in
+3
-0
No files found.
configure
View file @
68f2db29
...
@@ -20488,6 +20488,154 @@ _ACEOF
...
@@ -20488,6 +20488,154 @@ _ACEOF
fi
fi
{
$as_echo
"
$as_me
:
$LINENO
: checking for struct xinpgen"
>
&5
$as_echo_n
"checking for struct xinpgen... "
>
&6
;
}
if
test
"
${
ac_cv_type_struct_xinpgen
+set
}
"
=
set
;
then
$as_echo_n
"(cached) "
>
&6
else
ac_cv_type_struct_xinpgen
=
no
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_SYS_SOCKETVAR_H
#include <sys/socketvar.h>
#endif
#ifdef HAVE_NET_ROUTE_H
#include <net/route.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN_SYSTM_H
#include <netinet/in_systm.h>
#endif
#ifdef HAVE_NETINET_IP_H
#include <netinet/ip.h>
#endif
#ifdef HAVE_NETINET_IN_PCB_H
#include <netinet/in_pcb.h>
#endif
int
main ()
{
if (sizeof (struct xinpgen))
return 0;
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
if
{
(
ac_try
=
"
$ac_compile
"
case
"((
$ac_try
"
in
*
\"
*
|
*
\`
*
|
*
\\
*
)
ac_try_echo
=
\$
ac_try
;;
*
)
ac_try_echo
=
$ac_try
;;
esac
eval
ac_try_echo
=
"
\"\$
as_me:
$LINENO
:
$ac_try_echo
\"
"
$as_echo
"
$ac_try_echo
"
)
>
&5
(
eval
"
$ac_compile
"
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
$as_echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
test
-z
"
$ac_c_werror_flag
"
||
test
!
-s
conftest.err
}
&&
test
-s
conftest.
$ac_objext
;
then
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_SYS_SOCKETVAR_H
#include <sys/socketvar.h>
#endif
#ifdef HAVE_NET_ROUTE_H
#include <net/route.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN_SYSTM_H
#include <netinet/in_systm.h>
#endif
#ifdef HAVE_NETINET_IP_H
#include <netinet/ip.h>
#endif
#ifdef HAVE_NETINET_IN_PCB_H
#include <netinet/in_pcb.h>
#endif
int
main ()
{
if (sizeof ((struct xinpgen)))
return 0;
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
if
{
(
ac_try
=
"
$ac_compile
"
case
"((
$ac_try
"
in
*
\"
*
|
*
\`
*
|
*
\\
*
)
ac_try_echo
=
\$
ac_try
;;
*
)
ac_try_echo
=
$ac_try
;;
esac
eval
ac_try_echo
=
"
\"\$
as_me:
$LINENO
:
$ac_try_echo
\"
"
$as_echo
"
$ac_try_echo
"
)
>
&5
(
eval
"
$ac_compile
"
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
$as_echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
test
-z
"
$ac_c_werror_flag
"
||
test
!
-s
conftest.err
}
&&
test
-s
conftest.
$ac_objext
;
then
:
else
$as_echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_type_struct_xinpgen
=
yes
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
else
$as_echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
fi
{
$as_echo
"
$as_me
:
$LINENO
: result:
$ac_cv_type_struct_xinpgen
"
>
&5
$as_echo
"
$ac_cv_type_struct_xinpgen
"
>
&6
;
}
if
test
"x
$ac_cv_type_struct_xinpgen
"
=
x
""
yes
;
then
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_STRUCT_XINPGEN 1
_ACEOF
fi
{
$as_echo
"
$as_me
:
$LINENO
: checking for struct ff_effect.direction"
>
&5
{
$as_echo
"
$as_me
:
$LINENO
: checking for struct ff_effect.direction"
>
&5
$as_echo_n
"checking for struct ff_effect.direction... "
>
&6
;
}
$as_echo_n
"checking for struct ff_effect.direction... "
>
&6
;
}
if
test
"
${
ac_cv_member_struct_ff_effect_direction
+set
}
"
=
set
;
then
if
test
"
${
ac_cv_member_struct_ff_effect_direction
+set
}
"
=
set
;
then
...
...
configure.ac
View file @
68f2db29
...
@@ -1572,6 +1572,30 @@ AC_CHECK_TYPES([sigset_t],,,[#include <sys/types.h>
...
@@ -1572,6 +1572,30 @@ AC_CHECK_TYPES([sigset_t],,,[#include <sys/types.h>
#include <signal.h>])
#include <signal.h>])
AC_CHECK_TYPES([request_sense],,,[#include <linux/cdrom.h>])
AC_CHECK_TYPES([request_sense],,,[#include <linux/cdrom.h>])
AC_CHECK_TYPES([struct xinpgen],,,
[#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_SYS_SOCKETVAR_H
#include <sys/socketvar.h>
#endif
#ifdef HAVE_NET_ROUTE_H
#include <net/route.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_NETINET_IN_SYSTM_H
#include <netinet/in_systm.h>
#endif
#ifdef HAVE_NETINET_IP_H
#include <netinet/ip.h>
#endif
#ifdef HAVE_NETINET_IN_PCB_H
#include <netinet/in_pcb.h>
#endif])
AC_CHECK_MEMBERS([struct ff_effect.direction],,,
AC_CHECK_MEMBERS([struct ff_effect.direction],,,
[#ifdef HAVE_LINUX_INPUT_H
[#ifdef HAVE_LINUX_INPUT_H
#include <linux/input.h>
#include <linux/input.h>
...
...
dlls/iphlpapi/ipstats.c
View file @
68f2db29
...
@@ -869,7 +869,7 @@ DWORD getUDPStats(MIB_UDPSTATS *stats)
...
@@ -869,7 +869,7 @@ DWORD getUDPStats(MIB_UDPSTATS *stats)
static
DWORD
getNumWithOneHeader
(
const
char
*
filename
)
static
DWORD
getNumWithOneHeader
(
const
char
*
filename
)
{
{
#if defined(HAVE_SYS_SYSCTL_H) && defined(HAVE_
NETINET_IN_PCB_H
)
#if defined(HAVE_SYS_SYSCTL_H) && defined(HAVE_
STRUCT_XINPGEN
)
size_t
Len
=
0
;
size_t
Len
=
0
;
char
*
Buf
;
char
*
Buf
;
struct
xinpgen
*
pXIG
,
*
pOrigXIG
;
struct
xinpgen
*
pXIG
,
*
pOrigXIG
;
...
@@ -1581,7 +1581,7 @@ DWORD getTcpTable(PMIB_TCPTABLE *ppTcpTable, DWORD maxEntries, HANDLE heap,
...
@@ -1581,7 +1581,7 @@ DWORD getTcpTable(PMIB_TCPTABLE *ppTcpTable, DWORD maxEntries, HANDLE heap,
{
{
DWORD
numEntries
;
DWORD
numEntries
;
PMIB_TCPTABLE
table
;
PMIB_TCPTABLE
table
;
#if defined(HAVE_SYS_SYSCTL_H) && defined(HAVE_
NETINET_IN_PCB_H
)
#if defined(HAVE_SYS_SYSCTL_H) && defined(HAVE_
STRUCT_XINPGEN
)
size_t
Len
=
0
;
size_t
Len
=
0
;
char
*
Buf
;
char
*
Buf
;
struct
xinpgen
*
pXIG
,
*
pOrigXIG
;
struct
xinpgen
*
pXIG
,
*
pOrigXIG
;
...
@@ -1615,7 +1615,7 @@ DWORD getTcpTable(PMIB_TCPTABLE *ppTcpTable, DWORD maxEntries, HANDLE heap,
...
@@ -1615,7 +1615,7 @@ DWORD getTcpTable(PMIB_TCPTABLE *ppTcpTable, DWORD maxEntries, HANDLE heap,
if
(
!
numEntries
)
if
(
!
numEntries
)
return
NO_ERROR
;
return
NO_ERROR
;
#if defined(HAVE_SYS_SYSCTL_H) && defined(HAVE_
NETINET_IN_PCB_H
)
#if defined(HAVE_SYS_SYSCTL_H) && defined(HAVE_
STRUCT_XINPGEN
)
if
(
sysctlbyname
(
"net.inet.tcp.pcblist"
,
NULL
,
&
Len
,
NULL
,
0
)
<
0
)
if
(
sysctlbyname
(
"net.inet.tcp.pcblist"
,
NULL
,
&
Len
,
NULL
,
0
)
<
0
)
{
{
...
...
include/config.h.in
View file @
68f2db29
...
@@ -780,6 +780,9 @@
...
@@ -780,6 +780,9 @@
/* Define to 1 if `st_mtim' is member of `struct stat'. */
/* Define to 1 if `st_mtim' is member of `struct stat'. */
#undef HAVE_STRUCT_STAT_ST_MTIM
#undef HAVE_STRUCT_STAT_ST_MTIM
/* Define to 1 if the system has the type `struct xinpgen'. */
#undef HAVE_STRUCT_XINPGEN
/* Define to 1 if you have the `symlink' function. */
/* Define to 1 if you have the `symlink' function. */
#undef HAVE_SYMLINK
#undef HAVE_SYMLINK
...
...
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