From 1c3ec1efb71fd9fae1a029d92b6d162a1921209b Mon Sep 17 00:00:00 2001 From: François Revol Date: Sat, 05 Dec 2009 21:01:40 +0000 Subject: [PATCH] Fix for #4885 (jam crashing in OSX 64bit). The prototype for getcwd() was missing, so defaulting to int as return type, cutting the address to 32bit. We probably want to include unistd.h for other OSes too... git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@34515 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- jam/pathunix.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jam/pathunix.c b/jam/pathunix.c index ef0ac61..6a3df2b 100644 --- a/jam/pathunix.c +++ b/jam/pathunix.c @@ -38,6 +38,12 @@ # ifdef USE_PATHUNIX +# if defined( OS_MACOSX ) +/* need unistd for the prototype for getcwd to avoid defaulting return to int on 64bit */ +/* XXX: others too ? */ +# include +# endif + /* * path_parse() - split a file name into dir/base/suffix/member */ -- gitore 0.2.3