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)