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