mirror of
https://github.com/NixOS/nix
synced 2025-07-06 05:01:48 +02: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
|
@ -1,5 +1,3 @@
|
|||
#if __linux__
|
||||
|
||||
#include "cgroup.hh"
|
||||
#include "util.hh"
|
||||
#include "file-system.hh"
|
||||
|
@ -145,5 +143,3 @@ CgroupStats destroyCgroup(const Path & cgroup)
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
#endif
|
|
@ -1,8 +1,6 @@
|
|||
#pragma once
|
||||
///@file
|
||||
|
||||
#if __linux__
|
||||
|
||||
#include <chrono>
|
||||
#include <optional>
|
||||
|
||||
|
@ -28,5 +26,3 @@ struct CgroupStats
|
|||
CgroupStats destroyCgroup(const Path & cgroup);
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue