summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-05-15 11:59:00 +0000
committerjb <jb@FreeBSD.org>1998-05-15 11:59:00 +0000
commit8760b05d1187f3c24fea82df408b58b9f888f2fe (patch)
tree2f3abcd7d07f752ac05dbcc54b3e7b142fa9a894 /lib
parent2ffd3c532c53df0c6e4f8dfe0e9ab9bff3fb6ca5 (diff)
downloadFreeBSD-src-8760b05d1187f3c24fea82df408b58b9f888f2fe.zip
FreeBSD-src-8760b05d1187f3c24fea82df408b58b9f888f2fe.tar.gz
NetBSD doesn't have a __getcwd syscall, so set have__getcwd to `no'
when building libc with NetBSD syscalls.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/getcwd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/gen/getcwd.c b/lib/libc/gen/getcwd.c
index f178784..fae252d 100644
--- a/lib/libc/gen/getcwd.c
+++ b/lib/libc/gen/getcwd.c
@@ -92,6 +92,9 @@ getcwd(pt, size)
return (NULL);
ept = pt + ptsize;
}
+#if defined(__NETBSD_SYSCALLS)
+ have__getcwd = 0;
+#else
if (have__getcwd) {
struct sigaction sa, osa;
int sigsys_installed = 0;
@@ -127,6 +130,7 @@ getcwd(pt, size)
return (pt);
}
}
+#endif
bpt = ept - 1;
*bpt = '\0';
OpenPOWER on IntegriCloud