Module Name: src
Committed By: skrll
Date: Sat Dec 1 13:28:18 UTC 2012
Modified Files:
src/include: unistd.h
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.136 -r1.137 src/include/unistd.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/include/unistd.h
diff -u src/include/unistd.h:1.136 src/include/unistd.h:1.137
--- src/include/unistd.h:1.136 Sun Nov 18 17:41:53 2012
+++ src/include/unistd.h Sat Dec 1 13:28:18 2012
@@ -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_
* 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);