mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-24 01:11:01 +00:00
(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:
parent
569719b8b0
commit
81e950dfba
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue