(objc_find_executable): #ifdef NeXT, use getwd() instead of getcwd().

(Reported by Gregor Hoffleit <flight@mathi.uni-heidelberg.DE>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@715 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1996-01-12 21:24:07 +00:00
parent 569719b8b0
commit 81e950dfba

View file

@ -123,7 +123,15 @@ objc_find_executable (const char *file)
if (*p) p++;
if (name[0] == '.' && name[1] == 0)
#ifndef NeXT
getcwd (name, MAXPATHLEN);
#else
/*
Reported by Gregor Hoffleit <flight@mathi.uni-heidelberg.DE>
Date: Fri, 12 Jan 96 16:00:42 +0100
*/
getwd (name);
#endif
strcat (name, "/");
strcat (name, file);