From 7eff3c8e477c37674ed81dadc534cb3ef55a5766 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 11 Jun 2012 19:19:14 +0000 Subject: [PATCH] Fix O_DSYNC constant not available on kernels below 2.6.32 issue as suggested by Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4343 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scst/include/scst.h b/scst/include/scst.h index f510f0dd0..0a058d393 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -71,6 +71,12 @@ typedef _Bool bool; #define __aligned __attribute__((aligned)) #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 32) +#ifndef O_DSYNC +#define O_DSYNC O_SYNC +#endif +#endif + #ifdef INSIDE_KERNEL_TREE #include #else