rts: Fix build when USE_LARGE_ADDRESS_SPACE is undefined
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 12 Jun 2016 07:50:39 +0000 (17:50 +1000)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 12 Jun 2016 07:50:40 +0000 (17:50 +1000)
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

rts/posix/OSMem.c

index a534219..58310fe 100644 (file)
@@ -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