From f241d528c6aa5078221fa0d1a6c5f2d5dadbcbcb Mon Sep 17 00:00:00 2001 From: David Schultz Date: Wed, 4 Mar 2009 03:33:21 +0000 Subject: [PATCH] Add openat to the POSIX.1-2008 namespace. --- sys/sys/fcntl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/sys/fcntl.h b/sys/sys/fcntl.h index c3cbc519bde..6e69d5defe7 100644 --- a/sys/sys/fcntl.h +++ b/sys/sys/fcntl.h @@ -278,7 +278,9 @@ __BEGIN_DECLS int open(const char *, int, ...); int creat(const char *, mode_t); int fcntl(int, int, ...); +#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809 int openat(int, const char *, int, ...); +#endif #if __BSD_VISIBLE int flock(int, int); #endif