Merge branch 'socket-set-33337'
[platform/upstream/dbus.git] / test / test-segfault.c
index dd1c87f..329a21f 100644 (file)
@@ -1,10 +1,11 @@
 /* This is simply a process that segfaults */
 #include <config.h>
 #include <stdlib.h>
+#ifdef HAVE_SIGNAL_H
 #include <signal.h>
+#endif
 
-#if !defined(DBUS_WIN) && !defined(DBUS_WINCE)
-#include <sys/time.h>
+#ifdef HAVE_SETRLIMIT
 #include <sys/resource.h>
 #endif
 
@@ -13,7 +14,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);