From 4182dd7c6e05449500a90e34bfd20c097b13c8d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 25 Jun 2003 00:11:11 +0000 Subject: [PATCH] This fixes the incorrect inclusion of our stdio.h header - it will now include the platform native stdio.h on BeOS and Linux. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3657 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/kernel/boot/heap/Jamfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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