summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-12-23 08:27:44 +0000
committerJim Meyering <jim@meyering.net>2005-12-23 08:27:44 +0000
commit6ed15904b1a59abc541279afdeb8078f68f458b9 (patch)
tree681740e9c698038563bd112ee77ab2b32dc5edaa /lib
parentbda1fc0aa41df53695bed55256066dd302a04fc8 (diff)
downloadcoreutils-6ed15904b1a59abc541279afdeb8078f68f458b9.tar.xz
(O_NOFOLLOW): Define.
Diffstat (limited to 'lib')
-rw-r--r--lib/chmod-safer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chmod-safer.c b/lib/chmod-safer.c
index 218a11448..aac61dfc8 100644
--- a/lib/chmod-safer.c
+++ b/lib/chmod-safer.c
@@ -32,6 +32,10 @@
#include "fcntl--.h" /* for the open->open_safer mapping */
+#if !defined O_NOFOLLOW
+# define O_NOFOLLOW 0
+#endif
+
#ifndef HAVE_FCHMOD
# define HAVE_FCHMOD false
# define fchmod(fd, mode) (-1)