diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-12 00:37:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-12 00:37:46 +0000 |
commit | 6ae7bbb5ea15ec11fa516fc920719f5d9c1abb00 (patch) | |
tree | 4b29fe9d84f8dc6f67fc701d4d2b90a7fbcd903d /lib | |
parent | 1e063d14df0f182626ebdd7ac7f32405aa754e03 (diff) | |
download | external_llvm-6ae7bbb5ea15ec11fa516fc920719f5d9c1abb00.zip external_llvm-6ae7bbb5ea15ec11fa516fc920719f5d9c1abb00.tar.gz external_llvm-6ae7bbb5ea15ec11fa516fc920719f5d9c1abb00.tar.bz2 |
improve support for minix, PR6280, patch by
Kees van Reeuwijk!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/System/Unix/Program.inc | 2 | ||||
-rw-r--r-- | lib/System/Unix/Signals.inc | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc index e8c2806..c10498a 100644 --- a/lib/System/Unix/Program.inc +++ b/lib/System/Unix/Program.inc @@ -126,7 +126,7 @@ static void TimeOutHandler(int Sig) { 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; diff --git a/lib/System/Unix/Signals.inc b/lib/System/Unix/Signals.inc index 676e1e5..7bd7526 100644 --- a/lib/System/Unix/Signals.inc +++ b/lib/System/Unix/Signals.inc @@ -52,7 +52,16 @@ static const int *const IntSigsEnd = // 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 |