configure: Explicitly check for sysinfo function.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
beb94094d0
commit
9815806f16
|
@ -15133,6 +15133,7 @@ for ac_func in \
|
||||||
strtoll \
|
strtoll \
|
||||||
strtoull \
|
strtoull \
|
||||||
symlink \
|
symlink \
|
||||||
|
sysinfo \
|
||||||
tcdrain \
|
tcdrain \
|
||||||
thr_kill2 \
|
thr_kill2 \
|
||||||
timegm \
|
timegm \
|
||||||
|
|
|
@ -2039,6 +2039,7 @@ AC_CHECK_FUNCS(\
|
||||||
strtoll \
|
strtoll \
|
||||||
strtoull \
|
strtoull \
|
||||||
symlink \
|
symlink \
|
||||||
|
sysinfo \
|
||||||
tcdrain \
|
tcdrain \
|
||||||
thr_kill2 \
|
thr_kill2 \
|
||||||
timegm \
|
timegm \
|
||||||
|
|
|
@ -1359,7 +1359,7 @@ void virtual_init_threading(void)
|
||||||
*/
|
*/
|
||||||
void virtual_get_system_info( SYSTEM_BASIC_INFORMATION *info )
|
void virtual_get_system_info( SYSTEM_BASIC_INFORMATION *info )
|
||||||
{
|
{
|
||||||
#ifdef HAVE_SYS_SYSINFO_H
|
#ifdef HAVE_SYSINFO
|
||||||
struct sysinfo sinfo;
|
struct sysinfo sinfo;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1368,7 +1368,7 @@ void virtual_get_system_info( SYSTEM_BASIC_INFORMATION *info )
|
||||||
info->PageSize = page_size;
|
info->PageSize = page_size;
|
||||||
info->MmLowestPhysicalPage = 1;
|
info->MmLowestPhysicalPage = 1;
|
||||||
info->MmHighestPhysicalPage = 0x7fffffff / page_size;
|
info->MmHighestPhysicalPage = 0x7fffffff / page_size;
|
||||||
#ifdef HAVE_SYS_SYSINFO_H
|
#ifdef HAVE_SYSINFO
|
||||||
if (!sysinfo(&sinfo))
|
if (!sysinfo(&sinfo))
|
||||||
{
|
{
|
||||||
ULONG64 total = (ULONG64)sinfo.totalram * sinfo.mem_unit;
|
ULONG64 total = (ULONG64)sinfo.totalram * sinfo.mem_unit;
|
||||||
|
|
|
@ -1008,6 +1008,9 @@
|
||||||
/* Define to 1 if you have the <syscall.h> header file. */
|
/* Define to 1 if you have the <syscall.h> header file. */
|
||||||
#undef HAVE_SYSCALL_H
|
#undef HAVE_SYSCALL_H
|
||||||
|
|
||||||
|
/* Define to 1 if you have the `sysinfo' function. */
|
||||||
|
#undef HAVE_SYSINFO
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/asoundlib.h> header file. */
|
/* Define to 1 if you have the <sys/asoundlib.h> header file. */
|
||||||
#undef HAVE_SYS_ASOUNDLIB_H
|
#undef HAVE_SYS_ASOUNDLIB_H
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue