]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
* bus/activation.c: win32 compile fix.
authorRalf Habacker <ralf.habacker@freenet.de>
Wed, 7 Mar 2007 18:34:01 +0000 (18:34 +0000)
committerRalf Habacker <ralf.habacker@freenet.de>
Wed, 7 Mar 2007 18:34:01 +0000 (18:34 +0000)
* 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

ChangeLog
bus/activation.c
dbus-win.patch
test/test-segfault.c

index 87c9fe8a0f18d85bc2d503e71ec4a1203e55c360..5b77d7f7fef5bf26d89a38f624e676be1e7a1d1d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-03-07  Ralf Habacker  <ralf.habacker@freenet.de>
+
+       * bus/activation.c: removed obsolate include header.
+       * 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 
+
 2007-03-06  Ralf Habacker  <ralf.habacker@freenet.de>
 
        * bus-win.patch: fixes unix listen problems, dbus-test 
index b729eb18adb280f66294be21f122db4036d29e9b..2e9dadb343015b06be40592c4ff7043ca64b966c 100644 (file)
@@ -34,7 +34,6 @@
 #include <dbus/dbus-spawn.h>
 #include <dbus/dbus-timeout.h>
 #include <dbus/dbus-sysdeps.h>
-#include <dirent.h>
 #include <errno.h>
 
 #define DBUS_SERVICE_SECTION "D-BUS Service"
index bc4c2305c0e67b56287f434c33e3a3b773ddf008..e1b3ace603b327166232fdce2b7312a06421a93e 100644 (file)
@@ -470,24 +470,6 @@ diff -u -3 -p -B -r1.19 dbus-mainloop.c
    _dbus_verbose ("Quit main loop, depth %d -> %d\n",
                   loop->depth + 1, loop->depth);
  }
-Index: dbus/dbus-message.h
-===================================================================
-RCS file: /cvs/dbus/dbus/dbus/dbus-message.h,v
-retrieving revision 1.65
-diff -u -3 -p -B -r1.65 dbus-message.h
---- dbus/dbus-message.h        21 Oct 2006 18:51:30 -0000      1.65
-+++ dbus/dbus-message.h        6 Mar 2007 20:54:41 -0000
-@@ -34,6 +34,10 @@
- #include <dbus/dbus-errors.h>
- #include <stdarg.h>
-+#ifdef DBUS_WINCE
-+#undef interface
-+#endif
-+
- DBUS_BEGIN_DECLS
- /**
 Index: dbus/dbus-server-socket.c
 ===================================================================
 RCS file: /cvs/dbus/dbus/dbus/dbus-server-socket.c,v
@@ -946,52 +928,3 @@ diff -u -3 -p -B -r1.22 dbus-watch.c
                   data, free_data_function, watch->data, watch->free_data_function);
    
    if (watch->free_data_function != NULL)
-Index: test/test-segfault.c
-===================================================================
-RCS file: /cvs/dbus/dbus/test/test-segfault.c,v
-retrieving revision 1.4
-diff -u -3 -p -B -r1.4 test-segfault.c
---- test/test-segfault.c       30 Nov 2005 19:32:26 -0000      1.4
-+++ test/test-segfault.c       6 Mar 2007 20:54:45 -0000
-@@ -1,9 +1,26 @@
- /* This is simply a process that segfaults */
-+#include <config.h>
- #include <stdlib.h>
- #include <signal.h>
-+#ifdef DBUS_WIN
-+#define RLIMIT_CORE   4               /* max core file size */
-+typedef unsigned long rlim_t;
-+struct rlimit {
-+      rlim_t  rlim_cur;
-+      rlim_t  rlim_max;
-+};
-+static int getrlimit (int __resource, struct rlimit *__rlp) {
-+  return -1;
-+}
-+static int setrlimit (int __resource, const struct rlimit *__rlp) {
-+  return -1;
-+}
-+#else
- #include <sys/time.h>
- #include <sys/resource.h>
-+#endif
-+
- int
- main (int argc, char **argv)
-Index: test/test-utils.c
-===================================================================
-RCS file: /cvs/dbus/dbus/test/test-utils.c,v
-retrieving revision 1.8
-diff -u -3 -p -B -r1.8 test-utils.c
---- test/test-utils.c  1 Oct 2006 15:36:18 -0000       1.8
-+++ test/test-utils.c  6 Mar 2007 20:54:45 -0000
-@@ -1,5 +1,7 @@
- #include "test-utils.h"
-+void _dbus_connection_close_internal (DBusConnection *connection);
-+
- typedef struct
- {
-   DBusLoop *loop;
index 6a99131ec88fc83aa31d92d1f764ba18fbf4f1e7..0b5a8dea1eb84f4b2e0f303474e1fddb85058bfa 100644 (file)
@@ -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';