linux compile fixes. grmbl
This commit is contained in:
parent
a93738dd79
commit
75f80029f6
@ -29,7 +29,7 @@ extern "C" {
|
||||
|
||||
/* Returns the physical memory size in kilobytes */
|
||||
unsigned GetPhysicalmemory(void){
|
||||
#if defined(SUN5) || defined(LINUX)
|
||||
#if defined(SUN5) || defined(__linux__)
|
||||
return (sysconf(_SC_PHYS_PAGES) * sysconf(_SC_PAGESIZE));
|
||||
|
||||
#elif defined(__APPLE__)
|
||||
@ -46,4 +46,4 @@ unsigned GetPhysicalmemory(void){
|
||||
return 2048*1024; /* 128 Mb default memory */
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user