summaryrefslogtreecommitdiff
path: root/lib/libc/gen/getcwd.c
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>1998-05-15 11:59:00 +0000
committerJohn Birrell <jb@FreeBSD.org>1998-05-15 11:59:00 +0000
commitefda37108bd4617d0fa95ce6a60720ee674af561 (patch)
treeca62a58e6e54e336a3775b1a7e63734f993a9a1a /lib/libc/gen/getcwd.c
parent6e19590c40eccf3423c24fd779ea79998b3705e1 (diff)
Notes
Diffstat (limited to 'lib/libc/gen/getcwd.c')
-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 f178784e44e7..fae252db02bd 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';