diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2007-03-07 18:34:01 +0000 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2007-03-07 18:34:01 +0000 |
commit | de9038c98494c7a330d0daf04ccacef4e14e7b98 (patch) | |
tree | 64c03c8755354669914ac022b683450a123f8db6 /test/test-segfault.c | |
parent | 02b8ddd21d48b9776d58ac9679da5deb46f74749 (diff) |
* bus/activation.c: win32 compile fix.
* test/test-segfault.c: win32 compile fix, rlimit isn't available on win32.
* dbus-win.patch: removed some more patches, they are applied or obsolate
Diffstat (limited to 'test/test-segfault.c')
-rw-r--r-- | test/test-segfault.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/test-segfault.c b/test/test-segfault.c index 6a99131e..0b5a8dea 100644 --- a/test/test-segfault.c +++ b/test/test-segfault.c @@ -1,15 +1,14 @@ /* This is simply a process that segfaults */ +#include <config.h> #include <stdlib.h> #include <signal.h> -#include <sys/time.h> -#include <sys/resource.h> - int main (int argc, char **argv) { char *p; +#if !defined(DBUS_WIN) && !defined(DBUS_WINCE) struct rlimit r = { 0, }; getrlimit (RLIMIT_CORE, &r); @@ -17,7 +16,7 @@ main (int argc, char **argv) setrlimit (RLIMIT_CORE, &r); raise (SIGSEGV); - +#endif p = NULL; *p = 'a'; |