summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-07-15 16:03:43 +0000
committerMoonchild <moonchild@palemoon.org>2022-07-15 16:03:43 +0000
commit325a49588aec069265e2342e9d81918ad3a5a681 (patch)
tree8019dfbf76d5f00a82ef519bef1011f298953442
parent00f22ddbe62f9ab4cf314b1beb18b7f9a91edae2 (diff)
downloaduxp-325a49588aec069265e2342e9d81918ad3a5a681.tar.gz
Issue #1805 - Follow-up: provide for Linux builds using rlimit and min/max.
-rw-r--r--js/xpconnect/src/XPCJSContext.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/xpconnect/src/XPCJSContext.cpp b/js/xpconnect/src/XPCJSContext.cpp
index 2a32af83bd..61a1d3b274 100644
--- a/js/xpconnect/src/XPCJSContext.cpp
+++ b/js/xpconnect/src/XPCJSContext.cpp
@@ -58,7 +58,14 @@
#include "nsIXULRuntime.h"
#include "nsJSPrincipals.h"
+#if defined(XP_LINUX)
+// For getrlimit and min/max.
+#include <algorithm>
+#include <sys/resource.h>
+#endif
+
#ifdef XP_WIN
+// For min/max.
#include <algorithm>
#include <windows.h>
#endif