mirror of
https://github.com/NixOS/nix
synced 2024-09-19 10:50:24 -04:00
libutil: fix/improve includes in current-process.cc
- move <sys/resource.h> from a __linux__ block to a !_WIN32 block: this matches what the actual code does, using getrlimit() & setrlimit() in !_WIN32 blocks - drop <sys/mount.h>, which is not portable, and it is not used
This commit is contained in:
parent
0e151bcbf0
commit
c34077578e
|
@ -15,13 +15,12 @@
|
||||||
|
|
||||||
#if __linux__
|
#if __linux__
|
||||||
# include <mutex>
|
# include <mutex>
|
||||||
# include <sys/resource.h>
|
|
||||||
# include "cgroup.hh"
|
# include "cgroup.hh"
|
||||||
# include "namespaces.hh"
|
# include "namespaces.hh"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
# include <sys/mount.h>
|
# include <sys/resource.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace nix {
|
namespace nix {
|
||||||
|
|
Loading…
Reference in a new issue