Fix compilation breakage on older kernels

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4789 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2013-03-07 20:12:25 +00:00
parent 41ec60e529
commit eb4d0f3cb9

View File

@@ -80,6 +80,15 @@ typedef _Bool bool;
#define __aligned __attribute__((aligned))
#endif
/*
* If kthread_create() is not #define, then kthread_create_on_node()
* doesn't exist.
*/
#ifndef kthread_create
#define kthread_create_on_node(threadfn, data, node, namefmt, arg...) \
kthread_create(threadfn, data, namefmt, ##arg)
#endif
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 32)
#ifndef O_DSYNC
#define O_DSYNC O_SYNC