forked from mirrors/nixpkgs
Merge pull request #113236 from blitz/kcmp
linux: enable kcmp() system call
This commit is contained in:
commit
968d7e80c7
1 changed files with 6 additions and 1 deletions
|
@ -643,7 +643,12 @@ let
|
||||||
XZ_DEC_TEST = option no;
|
XZ_DEC_TEST = option no;
|
||||||
};
|
};
|
||||||
|
|
||||||
criu = optionalAttrs (features.criu or false) ({
|
criu = if (versionAtLeast version "4.19") then {
|
||||||
|
# Unconditionally enabled, because it is required for CRIU and
|
||||||
|
# it provides the kcmp() system call that Mesa depends on.
|
||||||
|
CHECKPOINT_RESTORE = yes;
|
||||||
|
} else optionalAttrs (features.criu or false) ({
|
||||||
|
# For older kernels, CHECKPOINT_RESTORE is hidden behind EXPERT.
|
||||||
EXPERT = yes;
|
EXPERT = yes;
|
||||||
CHECKPOINT_RESTORE = yes;
|
CHECKPOINT_RESTORE = yes;
|
||||||
} // optionalAttrs (features.criu_revert_expert or true) {
|
} // optionalAttrs (features.criu_revert_expert or true) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue