mirror of
https://github.com/schoebel/mars
synced 2024-12-26 00:22:31 +00:00
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
|
||||
#define READ_ONCE ACCESS_ONCE
|
||||
#endif
|
||||
#ifndef WRITE_ONCE
|
||||
/* quirk */
|
||||
#define WRITE_ONCE(dst,src) ACCESS_ONCE(dst) = (src)
|
||||
#endif
|
||||
|
||||
#endif /* _MARS_COMPAT */
|
||||
|
Loading…
Reference in New Issue
Block a user