diff options
-rw-r--r-- | js/xpconnect/src/XPCJSContext.cpp | 7 |
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 |