about summary refs log tree commit diff stats
path: root/xxxterm.h
diff options
context:
space:
mode:
Diffstat (limited to 'xxxterm.h')
-rw-r--r--xxxterm.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/xxxterm.h b/xxxterm.h
index cb30c3e..0b8cc7f 100644
--- a/xxxterm.h
+++ b/xxxterm.h
@@ -48,7 +48,6 @@ u_int32_t	arc4random_uniform(u_int32_t);
 #include <sys/tree.h>
 #endif
 #include <sys/queue.h>
-#include <sys/resource.h>
 #include <sys/socket.h>
 #include <sys/stat.h>
 #include <sys/time.h>
@@ -81,6 +80,11 @@ u_int32_t	arc4random_uniform(u_int32_t);
 #include <sys/wait.h>
 #endif
 
+/* set if you don't want to use resource limits */
+#ifndef XT_RESOURCE_LIMITS_DISABLE
+#include <sys/resource.h>
+#endif
+
 #include "javascript.h"
 /*
 javascript.h borrowed from vimprobable2 under the following license: