Revision: 20584
Author:   [email protected]
Date:     Tue Apr  8 18:12:00 2014 UTC
Log:      Compile fix for NaCL

[email protected]
BUG=none
LOG=n

Review URL: https://codereview.chromium.org/228953002
http://code.google.com/p/v8/source/detail?r=20584

Modified:
 /branches/bleeding_edge/src/platform-posix.cc

=======================================
--- /branches/bleeding_edge/src/platform-posix.cc Tue Apr 8 17:19:15 2014 UTC +++ /branches/bleeding_edge/src/platform-posix.cc Tue Apr 8 18:12:00 2014 UTC
@@ -96,7 +96,12 @@
   struct rlimit limit;
   int result = getrlimit(RLIMIT_DATA, &limit);
   if (result != 0) return 0;
+#if V8_OS_NACL
+  // The NaCl compiler doesn't like resource.h constants.
+  if (static_cast<int>(limit.rlim_cur) == -1) return 0;
+#else
   if (limit.rlim_cur == RLIM_INFINITY) return 0;
+#endif
   return limit.rlim_cur;
 }

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to