mirror of https://github.com/schoebel/mars
compat: old kernels without WRITE_ONCE
This commit is contained in:
parent
8050499e39
commit
9f2e0c853e
|
@ -306,5 +306,9 @@ extern int _compat_unlink(
|
||||||
#ifndef READ_ONCE
|
#ifndef READ_ONCE
|
||||||
#define READ_ONCE ACCESS_ONCE
|
#define READ_ONCE ACCESS_ONCE
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef WRITE_ONCE
|
||||||
|
/* quirk */
|
||||||
|
#define WRITE_ONCE(dst,src) ACCESS_ONCE(dst) = (src)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* _MARS_COMPAT */
|
#endif /* _MARS_COMPAT */
|
||||||
|
|
Loading…
Reference in New Issue