Commit 9815806f authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

configure: Explicitly check for sysinfo function.

parent beb94094
...@@ -15133,6 +15133,7 @@ for ac_func in \ ...@@ -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(\ ...@@ -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) ...@@ -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 ) ...@@ -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 @@ ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment