dbus/test test-segfault.c,1.6,1.7

Ralf Habacker rhabacker at kemper.freedesktop.org
Thu Mar 8 00:17:27 PST 2007


Update of /cvs/dbus/dbus/test
In directory kemper:/tmp/cvs-serv29251/test

Modified Files:
	test-segfault.c 
Log Message:
* configure.in, cmake/ConfigureChecks.cmake: added check for setrlimit. 
* test/test-segfault.c: only include setrlimit stuff only when available.

Index: test-segfault.c
===================================================================
RCS file: /cvs/dbus/dbus/test/test-segfault.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- test-segfault.c	7 Mar 2007 19:09:57 -0000	1.6
+++ test-segfault.c	8 Mar 2007 08:17:25 -0000	1.7
@@ -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 @@
 {
   char *p;  
 
-#if !defined(DBUS_WIN) && !defined(DBUS_WINCE)
+#if HAVE_SETRLIMIT
   struct rlimit r = { 0, };
   
   getrlimit (RLIMIT_CORE, &r);



More information about the dbus-commit mailing list