diff options
author | Austin Seipp <austin@well-typed.com> | 2013-11-21 16:48:24 -0600 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2013-11-22 08:04:53 -0600 |
commit | bb73d1d4a4e5195cbecc5a009a0e798af02aa37b (patch) | |
tree | c4882acef1267512e59a8ca0313365006758f035 /rts | |
parent | 9bb909bbcf280f137c7a379d05acf5bc21268e5b (diff) | |
download | haskell-bb73d1d4a4e5195cbecc5a009a0e798af02aa37b.tar.gz |
Extend getPhysicalMemorySize to iOS (#8533)
Authored-by: Authored-by: Luke Iannini <lukexi@me.com>
Signed-off-by: Austin Seipp <austin@well-typed.com>
Diffstat (limited to 'rts')
-rw-r--r-- | rts/posix/OSMem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/posix/OSMem.c b/rts/posix/OSMem.c index acdb00e3c9..b57adbf4e2 100644 --- a/rts/posix/OSMem.c +++ b/rts/posix/OSMem.c @@ -269,7 +269,7 @@ StgWord64 getPhysicalMemorySize (void) { static StgWord64 physMemSize = 0; if (!physMemSize) { -#ifdef darwin_HOST_OS +#if defined(darwin_HOST_OS) || defined(ios_HOST_OS) /* So, darwin doesn't support _SC_PHYS_PAGES, but it does support getting the raw memory size in bytes through sysctlbyname(hw.memsize); */ |