summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormanu <manu@NetBSD.org>2011-08-16 07:55:29 +0000
committermanu <manu@NetBSD.org>2011-08-16 07:55:29 +0000
commit6faebd0a1027ee2f77842667d9d1261c19f34d1d (patch)
tree3ce7cceeccfc832a59f1782ff1731420f5c9db6c /include
parentb76915feaedb688d5df707e95889017641dc71b7 (diff)
Add macros to hide OpenGroup extened API set 2 from GNU configure. This
is a temporary workaround until the implementation is completed.
Diffstat (limited to 'include')
-rw-r--r--include/limits.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/include/limits.h b/include/limits.h
index dd633b1526c..d9a440ce7c0 100644
--- a/include/limits.h
+++ b/include/limits.h
@@ -1,4 +1,4 @@
-/* $NetBSD: limits.h,v 1.29 2010/06/07 13:52:29 tnozaki Exp $ */
+/* $NetBSD: limits.h,v 1.30 2011/08/16 07:55:29 manu Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -110,6 +110,29 @@
#define MB_LEN_MAX 32 /* Allow ISO/IEC 2022 */
+/*
+ * X/Open Extended API set 2 (a.k.a. C063)
+ * This hides unimplemented functions from GNU configure until
+ * we are done implementing them.
+ */
+#if !defined(_INCOMPLETE_XOPEN_C063)
+#define __stub_linkat
+#define __stub_renameat
+#define __stub_mkfifoat
+#define __stub_mknodat
+#define __stub_mkdirat
+#define __stub_faccessat
+#define __stub_fchmodat
+#define __stub_fchownat
+#define __stub_fexecve
+#define __stub_fstatat
+#define __stub_utimensat
+#define __stub_openat
+#define __stub_readlinkat
+#define __stub_symlinkat
+#define __stub_unlinkat
+#endif
+
#include <machine/limits.h>
#include <sys/syslimits.h>