summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2007-03-08 08:17:25 +0000
committerRalf Habacker <ralf.habacker@freenet.de>2007-03-08 08:17:25 +0000
commit892780c35e6edc4103858c2df55547c4f07d5c4f (patch)
treeb866bf3737ace6b3fca544b3a1d935aec064673b /test
parent42fe5c9341e9493ed94b319bb00063f432dd0673 (diff)
* configure.in, cmake/ConfigureChecks.cmake: added check for setrlimit.
* test/test-segfault.c: only include setrlimit stuff only when available.
Diffstat (limited to 'test')
-rw-r--r--test/test-segfault.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test-segfault.c b/test/test-segfault.c
index dd1c87fe..bf4d964b 100644
--- a/test/test-segfault.c
+++ b/test/test-segfault.c
@@ -3,8 +3,7 @@
#include <stdlib.h>
#include <signal.h>
-#if !defined(DBUS_WIN) && !defined(DBUS_WINCE)
-#include <sys/time.h>
+#ifdef HAVE_SETRLIMIT
#include <sys/resource.h>
#endif
@@ -13,7 +12,7 @@ main (int argc, char **argv)
{
char *p;
-#if !defined(DBUS_WIN) && !defined(DBUS_WINCE)
+#if HAVE_SETRLIMIT
struct rlimit r = { 0, };
getrlimit (RLIMIT_CORE, &r);