summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorskrll <skrll@NetBSD.org>2012-12-01 13:28:18 +0000
committerskrll <skrll@NetBSD.org>2012-12-01 13:28:18 +0000
commitb280671bed2bc7841b5e01a3dabb99d1989b0f57 (patch)
tree1e608968a2a7807080f3329dc9e8bc4255044717 /include
parentad5b0ea0dff6ebdef0c72153dba2fb6a1dbbb8f7 (diff)
Check for _NETBSD_SOURCE being defined wherever we check for
_INCOMPLETE_XOPEN_C063 so that we expose the new POSIX extended API set recently added.
Diffstat (limited to 'include')
-rw-r--r--include/unistd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 32776afec6a..94d58d44810 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -1,4 +1,4 @@
-/* $NetBSD: unistd.h,v 1.136 2012/11/18 17:41:53 manu Exp $ */
+/* $NetBSD: unistd.h,v 1.137 2012/12/01 13:28:18 skrll Exp $ */
/*-
* Copyright (c) 1998, 1999, 2008 The NetBSD Foundation, Inc.
@@ -295,7 +295,7 @@ ssize_t pwrite(int, const void *, size_t, off_t);
* X/Open Extended API set 2 (a.k.a. C063)
*/
#if (_POSIX_C_SOURCE - 0) >= 200809L || (_XOPEN_SOURCE - 0 >= 700) || \
- defined(_INCOMPLETE_XOPEN_C063) || defined(_KERNEL)
+ defined(_INCOMPLETE_XOPEN_C063) || defined(_NETBSD_SOURCE)
int linkat(int, const char *, int, const char *, int);
int renameat(int, const char *, int, const char *);
int mkfifoat(int, const char *, mode_t);