NetBSD doesn't have a __getcwd syscall, so set have__getcwd to `no'
when building libc with NetBSD syscalls.
This commit is contained in:
parent
6e19590c40
commit
efda37108b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36060
@ -92,6 +92,9 @@ getcwd(pt, size)
|
|||||||
return (NULL);
|
return (NULL);
|
||||||
ept = pt + ptsize;
|
ept = pt + ptsize;
|
||||||
}
|
}
|
||||||
|
#if defined(__NETBSD_SYSCALLS)
|
||||||
|
have__getcwd = 0;
|
||||||
|
#else
|
||||||
if (have__getcwd) {
|
if (have__getcwd) {
|
||||||
struct sigaction sa, osa;
|
struct sigaction sa, osa;
|
||||||
int sigsys_installed = 0;
|
int sigsys_installed = 0;
|
||||||
@ -127,6 +130,7 @@ getcwd(pt, size)
|
|||||||
return (pt);
|
return (pt);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
bpt = ept - 1;
|
bpt = ept - 1;
|
||||||
*bpt = '\0';
|
*bpt = '\0';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user