The magic-Linux-syscall branch of the #if in this module is only
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 21 Nov 2008 18:57:06 +0000 (18:57 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 21 Nov 2008 18:57:06 +0000 (18:57 +0000)
worth using at all if we have O_NOATIME to use with it, which it
turns out some (old) Linuxes don't. Make the #if more reluctant to
use that branch, therefore.

git-svn-id: svn://svn.tartarus.org/sgt/agedu@8308 cda61777-01e9-0310-a592-d414129be87e

du.c

diff --git a/du.c b/du.c
index e49b0d3..8028432 100644 (file)
--- a/du.c
+++ b/du.c
@@ -6,7 +6,7 @@
 #include "du.h"
 #include "alloc.h"
 
-#if !defined __linux__ || defined HAVE_FDOPENDIR
+#if !defined __linux__ || !defined O_NOATIME || defined HAVE_FDOPENDIR
 
 #ifdef HAVE_DIRENT_H
 #  include <dirent.h>