[llvm-commits] [llvm] r95946 - in /llvm/trunk/lib/System/Unix: Program.inc Signals.inc
Chris Lattner
sabre at nondot.org
Thu Feb 11 16:37:46 PST 2010
Author: lattner
Date: Thu Feb 11 18:37:46 2010
New Revision: 95946
URL: http://llvm.org/viewvc/llvm-project?rev=95946&view=rev
Log:
improve support for minix, PR6280, patch by
Kees van Reeuwijk!
Modified:
llvm/trunk/lib/System/Unix/Program.inc
llvm/trunk/lib/System/Unix/Signals.inc
Modified: llvm/trunk/lib/System/Unix/Program.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Unix/Program.inc?rev=95946&r1=95945&r2=95946&view=diff
==============================================================================
--- llvm/trunk/lib/System/Unix/Program.inc (original)
+++ llvm/trunk/lib/System/Unix/Program.inc Thu Feb 11 18:37:46 2010
@@ -126,7 +126,7 @@
static void SetMemoryLimits (unsigned size)
{
-#if HAVE_SYS_RESOURCE_H
+#if HAVE_SYS_RESOURCE_H && HAVE_GETRLIMIT && HAVE_SETRLIMIT
struct rlimit r;
__typeof__ (r.rlim_cur) limit = (__typeof__ (r.rlim_cur)) (size) * 1048576;
Modified: llvm/trunk/lib/System/Unix/Signals.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Unix/Signals.inc?rev=95946&r1=95945&r2=95946&view=diff
==============================================================================
--- llvm/trunk/lib/System/Unix/Signals.inc (original)
+++ llvm/trunk/lib/System/Unix/Signals.inc Thu Feb 11 18:37:46 2010
@@ -52,7 +52,16 @@
// KillSigs - Signals that are synchronous with the program that will cause it
// to die.
static const int KillSigs[] = {
- SIGILL, SIGTRAP, SIGABRT, SIGFPE, SIGBUS, SIGSEGV, SIGSYS, SIGXCPU, SIGXFSZ
+ SIGILL, SIGTRAP, SIGABRT, SIGFPE, SIGBUS, SIGSEGV
+#ifdef SIGSYS
+ , SIGSYS
+#endif
+#ifdef SIGXCPU
+ , SIGXCPU
+#endif
+#ifdef SIGEMT
+ , SIGXFSZ
+#endif
#ifdef SIGEMT
, SIGEMT
#endif
More information about the llvm-commits
mailing list