mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 15:02:42 +01:00
Make cgroup.{cc,hh} linux-only files
Forcing a conditional include, vs making the headers content conditional, I think is more maintainable. It is also how the other platform-specific headers (like `namespaces.hh`) have been adapted.
This commit is contained in:
parent
74130fd1f1
commit
513634ab5b
3 changed files with 1 additions and 9 deletions
|
|
@ -14,7 +14,6 @@
|
|||
#include "topo-sort.hh"
|
||||
#include "callback.hh"
|
||||
#include "json-utils.hh"
|
||||
#include "cgroup.hh"
|
||||
#include "personality.hh"
|
||||
#include "current-process.hh"
|
||||
#include "child.hh"
|
||||
|
|
@ -52,6 +51,7 @@
|
|||
# include <seccomp.h>
|
||||
# endif
|
||||
# define pivot_root(new_root, put_old) (syscall(SYS_pivot_root, new_root, put_old))
|
||||
# include "cgroup.hh"
|
||||
#endif
|
||||
|
||||
#if __APPLE__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue