Commit 56d40c3b authored by hybrid's avatar hybrid

Avoid problem with missing POSIX symbols.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1028 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 329e8f6c
...@@ -155,6 +155,7 @@ bool COSOperator::getSystemMemory(u32* Total, u32* Avail) const ...@@ -155,6 +155,7 @@ bool COSOperator::getSystemMemory(u32* Total, u32* Avail) const
return true; return true;
#elif defined(_IRR_POSIX_API_) #elif defined(_IRR_POSIX_API_)
#if defined(_SC_PHYS_PAGES) && defined(_SC_AVPHYS_PAGES)
long ps = sysconf(_SC_PAGESIZE); long ps = sysconf(_SC_PAGESIZE);
long pp = sysconf(_SC_PHYS_PAGES); long pp = sysconf(_SC_PHYS_PAGES);
long ap = sysconf(_SC_AVPHYS_PAGES); long ap = sysconf(_SC_AVPHYS_PAGES);
...@@ -167,6 +168,10 @@ bool COSOperator::getSystemMemory(u32* Total, u32* Avail) const ...@@ -167,6 +168,10 @@ bool COSOperator::getSystemMemory(u32* Total, u32* Avail) const
if (Avail) if (Avail)
*Avail = ((ps*(long long)ap)>>10); *Avail = ((ps*(long long)ap)>>10);
return true; return true;
#else
// TODO: implement for non-availablity of symbols/features
return false;
#endif
#else #else
// TODO: implement for OSX // TODO: implement for OSX
return false; return false;
......
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