diff --git a/gl/fcntl--.h b/gl/fcntl--.h
index 5a6a8792d04c5ff600c83debd70a17e253cdd9c6..7baa2cbca681c3906a9d68ca5ff9069b353f0525 100644 (file)
--- a/gl/fcntl--.h
+++ b/gl/fcntl--.h
/* Like fcntl.h, but redefine some names to avoid glitches.
- Copyright (C) 2005 Free Software Foundation, Inc.
+ Copyright (C) 2005, 2009-2010 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#undef creat
#define creat creat_safer
+
+#if GNULIB_OPENAT_SAFER
+# undef openat
+# define openat openat_safer
+#endif