Some more fixes for AROS build.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@436 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2008-12-29 17:15:56 +00:00
parent 57c875df3d
commit 30184d82e9
3 changed files with 12 additions and 3 deletions

View File

@@ -915,6 +915,8 @@ void Zoomer_une_ligne(byte* Ligne_originale, byte* Ligne_zoomee,
#include <sys/sysctl.h>
#elif defined(__BEOS__) || defined(__HAIKU__)
// sysinfo not implemented
#elif defined(__AROS__)
#include <proto/exec.h>
#else
#include <sys/sysinfo.h> // sysinfo() for free RAM
#endif
@@ -951,6 +953,8 @@ unsigned long Memoire_libre(void)
#elif defined(__BEOS__) || defined(__HAIKU__)
// No <sys/sysctl.h> on BeOS or Haiku
return 10*1024*1024;
#elif defined(__AROS__)
return AvailMem(MEMF_ANY);
#else
struct sysinfo info;
sysinfo(&info);