From 2e4d2fb076dee261f0ab241541217018b41022b2 Mon Sep 17 00:00:00 2001 From: dsandersoremutah Date: Wed, 13 Sep 2006 14:50:13 +0000 Subject: [PATCH] Added ifdef around O_NOATIME. This is only defined for linux kernels 2.6.8 and greater. git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@847 0109f412-320b-0410-ab79-c3e0c5ffbbe6 --- ftk/src/ftkunix.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ftk/src/ftkunix.cpp b/ftk/src/ftkunix.cpp index f914301..7f6380e 100644 --- a/ftk/src/ftkunix.cpp +++ b/ftk/src/ftkunix.cpp @@ -185,8 +185,9 @@ RCODE F_FileHdl::openOrCreate( { bDoDirectIO = FALSE; } - + #ifdef O_NOATIME openFlags |= O_NOATIME; + #endif } #elif defined( FLM_AIX) openFlags |= O_DIRECT;