diff options
author | Erik de Castro Lopo <erikd@mega-nerd.com> | 2016-06-12 17:50:39 +1000 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2016-06-12 17:50:40 +1000 |
commit | 6ace660a0354303797c033dabc164df91f7cb956 (patch) | |
tree | bde3bccbd75ce70ee2d5541c9b64c5fecbd7fc59 /rts | |
parent | 5990016ac87ebc39466b736fb94bba7643e0fc97 (diff) | |
download | haskell-6ace660a0354303797c033dabc164df91f7cb956.tar.gz |
rts: Fix build when USE_LARGE_ADDRESS_SPACE is undefined
The recently added NUMA related functions were mistakenly defined
within a `#ifdef USE_LARGE_ADDRESS_SPACE` ... `#endif` block. Moving
them outside this block fixes the build on PowerPC and Arm Linux.
Test Plan: Build on PowerPC or Arm Linux
Reviewers: hvr, austin, bgamari, simonmar
Reviewed By: simonmar
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D2326
Diffstat (limited to 'rts')
-rw-r--r-- | rts/posix/OSMem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/posix/OSMem.c b/rts/posix/OSMem.c index a534219902..58310fe0ea 100644 --- a/rts/posix/OSMem.c +++ b/rts/posix/OSMem.c @@ -544,6 +544,8 @@ void osReleaseHeapMemory(void) sysErrorBelch("unable to release address space"); } +#endif + rtsBool osNumaAvailable(void) { #ifdef HAVE_NUMA_H @@ -575,5 +577,3 @@ StgWord osNumaMask(void) return 1; #endif } - -#endif |