Index: tools/hscollider/limit.cpp
--- tools/hscollider/limit.cpp.orig
+++ tools/hscollider/limit.cpp
@@ -52,11 +52,13 @@ void setMemoryLimit(size_t mbytes) {
                      strerror(errno) << std::endl;
     }
 
+#ifdef RLIMIT_AS
     rv = setrlimit(RLIMIT_AS, &r);
     if (rv != 0) {
         std::cerr << "setrlimit(RLIMIT_AS, ...) failed: " <<
                      strerror(errno) << std::endl;
     }
+#endif
 }
 #else // no setrlimit
 void setMemoryLimit(size_t) {}
