projects
/
platform
/
upstream
/
dbus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'socket-set-33337'
[platform/upstream/dbus.git]
/
test
/
test-segfault.c
diff --git
a/test/test-segfault.c
b/test/test-segfault.c
index
dd1c87f
..
329a21f
100644
(file)
--- a/
test/test-segfault.c
+++ b/
test/test-segfault.c
@@
-1,10
+1,11
@@
/* This is simply a process that segfaults */
#include <config.h>
#include <stdlib.h>
/* This is simply a process that segfaults */
#include <config.h>
#include <stdlib.h>
+#ifdef HAVE_SIGNAL_H
#include <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
#include <sys/resource.h>
#endif
@@
-13,7
+14,7
@@
main (int argc, char **argv)
{
char *p;
{
char *p;
-#if
!defined(DBUS_WIN) && !defined(DBUS_WINCE)
+#if
HAVE_SETRLIMIT
struct rlimit r = { 0, };
getrlimit (RLIMIT_CORE, &r);
struct rlimit r = { 0, };
getrlimit (RLIMIT_CORE, &r);