aboutsummaryrefslogtreecommitdiff
path: root/zencore/filesystem.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-04-12 19:31:42 +0200
committerDan Engelbrecht <[email protected]>2022-04-12 19:31:42 +0200
commit27e49ea3a4770c268a01e503bd3f186568059636 (patch)
tree87bb21010de98d8fb281ed60b2c54567eadba6da /zencore/filesystem.cpp
parentcleanup (diff)
downloadzen-27e49ea3a4770c268a01e503bd3f186568059636.tar.xz
zen-27e49ea3a4770c268a01e503bd3f186568059636.zip
more cleanup
Diffstat (limited to 'zencore/filesystem.cpp')
-rw-r--r--zencore/filesystem.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp
index 8e75ad773..7ff0dc45c 100644
--- a/zencore/filesystem.cpp
+++ b/zencore/filesystem.cpp
@@ -23,6 +23,7 @@
#if ZEN_PLATFORM_LINUX
# include <dirent.h>
# include <fcntl.h>
+# include <sys/resource.h>
# include <sys/stat.h>
# include <unistd.h>
#endif
@@ -31,6 +32,7 @@
# include <dirent.h>
# include <fcntl.h>
# include <libproc.h>
+# include <sys/resource.h>
# include <sys/stat.h>
# include <sys/syslimits.h>
# include <unistd.h>
@@ -987,7 +989,7 @@ GetRunningExecutablePath()
}
void
-InitializeOpenFileCount()
+MaximizeOpenFileCount()
{
#if ZEN_PLATFORM_LINUX || ZEN_PLATFORM_MAC
struct rlimit Limit;