summaryrefslogtreecommitdiff
path: root/lib/chmod-safer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chmod-safer.c')
-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)