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 \
strtoll \
strtoull \
symlink \
sysinfo \
tcdrain \
thr_kill2 \
timegm \
......
......@@ -2039,6 +2039,7 @@ AC_CHECK_FUNCS(\
strtoll \
strtoull \
symlink \
sysinfo \
tcdrain \
thr_kill2 \
timegm \
......
......@@ -1359,7 +1359,7 @@ void virtual_init_threading(void)
*/
void virtual_get_system_info( SYSTEM_BASIC_INFORMATION *info )
{
#ifdef HAVE_SYS_SYSINFO_H
#ifdef HAVE_SYSINFO
struct sysinfo sinfo;
#endif
......@@ -1368,7 +1368,7 @@ void virtual_get_system_info( SYSTEM_BASIC_INFORMATION *info )
info->PageSize = page_size;
info->MmLowestPhysicalPage = 1;
info->MmHighestPhysicalPage = 0x7fffffff / page_size;
#ifdef HAVE_SYS_SYSINFO_H
#ifdef HAVE_SYSINFO
if (!sysinfo(&sinfo))
{
ULONG64 total = (ULONG64)sinfo.totalram * sinfo.mem_unit;
......
......@@ -1008,6 +1008,9 @@
/* Define to 1 if you have the <syscall.h> header file. */
#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. */
#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