diff --git a/src/tests/kernel/boot/heap/Jamfile b/src/tests/kernel/boot/heap/Jamfile index 10a670dd1e..9d65486c1a 100644 --- a/src/tests/kernel/boot/heap/Jamfile +++ b/src/tests/kernel/boot/heap/Jamfile @@ -1,17 +1,21 @@ SubDir OBOS_TOP src tests kernel boot heap ; UsePrivateHeaders kernel ; - # this makes the wrong stdio.h header accessible - # current work-around to let the test build - # under the build platform is to remove the - # private/kernel/stdio.h file. - # This will be fixed with the move to GNU's stdio header SubDirHdrs $(OBOS_TOP) headers private kernel arch $(OBOS_ARCH) ; SubDirHdrs $(OBOS_TOP) headers private kernel boot platform $(OBOS_BOOT_PLATFORM) ; ObjectDefines heap.cpp : malloc=heap_malloc free=heap_free ; +# This lets the correct stdio.h header be available +# on the build platform. +# This will be fixed with the move to GNU's stdio header +if $(OS) = "LINUX" { + SubDirC++Flags -include /usr/include/stdio.h ; +} else { + SubDirC++Flags -include /boot/develop/headers/posix/stdio.h ; +} + BuildPlatformTest heapTest : heapTest.cpp