summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2007-03-07 18:34:01 +0000
committerRalf Habacker <ralf.habacker@freenet.de>2007-03-07 18:34:01 +0000
commitde9038c98494c7a330d0daf04ccacef4e14e7b98 (patch)
tree64c03c8755354669914ac022b683450a123f8db6
parent02b8ddd21d48b9776d58ac9679da5deb46f74749 (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
-rw-r--r--ChangeLog8
-rw-r--r--bus/activation.c1
-rw-r--r--dbus-win.patch67
-rw-r--r--test/test-segfault.c7
4 files changed, 11 insertions, 72 deletions
diff --git a/ChangeLog b/ChangeLog
index 87c9fe8a..5b77d7f7 100644
--- 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
diff --git a/bus/activation.c b/bus/activation.c
index b729eb18..2e9dadb3 100644
--- a/bus/activation.c
+++ b/bus/activation.c
@@ -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"
diff --git a/dbus-win.patch b/dbus-win.patch
index bc4c2305..e1b3ace6 100644
--- a/dbus-win.patch
+++ b/dbus-win.patch
@@ -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;
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';