From 98be5b66851c1147e78e20fb2ad05da448d21792 Mon Sep 17 00:00:00 2001
From: Jim Meyering <jim@meyering.net>
Date: Sun, 28 Nov 2004 22:42:08 +0000
Subject: (rpl_openat): Also accept optional mode parameter. Adjust prototype

---
 lib/openat.h | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/lib/openat.h b/lib/openat.h
index 8354b3ada..5842105fd 100644
--- a/lib/openat.h
+++ b/lib/openat.h
@@ -12,10 +12,6 @@
 #  define __OPENAT_XCONCAT(x, y) __OPENAT_CONCAT (x, y)
 #  define __OPENAT_ID(y) __OPENAT_XCONCAT (__OPENAT_PREFIX, y)
 #  define openat __OPENAT_ID (openat)
-/* FIXME: use proper prototype */
-#if 0
-   int openat (int fd, char const *filename, int flags, /* mode_t mode */ ...);
-#endif
-int openat (int fd, char const *filename, int flags);
+int openat (int fd, char const *filename, int flags, /* mode_t mode */ ...);
 # endif
 #endif
-- 
cgit v1.2.3-70-g09d2