Attempt at fixing BeOS build that I broke in r345 -> Issue 61.

Completed bugfinders list.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@362 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2008-11-25 19:55:06 +00:00
parent 8ce30de525
commit 7ba57b206e
3 changed files with 13 additions and 6 deletions

View File

@@ -24,8 +24,10 @@
#include <windows.h>
#elif defined(__macosx__)
#include <sys/sysctl.h>
#elif defined(__BEOS__) || defined(__HAIKU__)
// sysinfo not implemented
#else
#include <sys/sysinfo.h>
#include <sys/sysinfo.h> // sysinfo() for free RAM
#endif
#include <string.h>
@@ -585,6 +587,9 @@ unsigned long Memoire_libre(void)
len = sizeof(maxmem);
sysctl(mib,2,&maxmem,&len,NULL,0);
return maxmem;
#elif defined(__BEOS__) || defined(__HAIKU__)
// No <sys/sysctl.h> on BeOS or Haiku
return 10*1024*1024;
#else
struct sysinfo info;
sysinfo(&info);