From 6ed15904b1a59abc541279afdeb8078f68f458b9 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 23 Dec 2005 08:27:44 +0000 Subject: [PATCH] (O_NOFOLLOW): Define. --- lib/chmod-safer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/chmod-safer.c b/lib/chmod-safer.c index 218a11448c..aac61dfc8b 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) -- 2.47.3