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:
Pino Toscano 2024-07-28 17:33:24 +02:00
parent 0e151bcbf0
commit c34077578e

View file

@ -15,13 +15,12 @@
#if __linux__
# include <mutex>
# include <sys/resource.h>
# include "cgroup.hh"
# include "namespaces.hh"
#endif
#ifndef _WIN32
# include <sys/mount.h>
# include <sys/resource.h>
#endif
namespace nix {