mirror of
https://github.com/reactos/wine.git
synced 2025-01-22 11:54:47 +00:00
kernel32: Add checks for DragonFly BSD.
This commit is contained in:
parent
89e462b141
commit
1f71006fe5
@ -1147,7 +1147,7 @@ BOOL WINAPI GlobalMemoryStatusEx( LPMEMORYSTATUSEX lpmemex )
|
|||||||
SYSTEM_INFO si;
|
SYSTEM_INFO si;
|
||||||
#ifdef linux
|
#ifdef linux
|
||||||
FILE *f;
|
FILE *f;
|
||||||
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
|
||||||
unsigned long val;
|
unsigned long val;
|
||||||
int mib[2];
|
int mib[2];
|
||||||
size_t size_sys;
|
size_t size_sys;
|
||||||
@ -1219,7 +1219,7 @@ BOOL WINAPI GlobalMemoryStatusEx( LPMEMORYSTATUSEX lpmemex )
|
|||||||
}
|
}
|
||||||
fclose( f );
|
fclose( f );
|
||||||
}
|
}
|
||||||
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
|
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) || defined(__APPLE__)
|
||||||
mib[0] = CTL_HW;
|
mib[0] = CTL_HW;
|
||||||
mib[1] = HW_PHYSMEM;
|
mib[1] = HW_PHYSMEM;
|
||||||
size_sys = sizeof(val);
|
size_sys = sizeof(val);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user