summaryrefslogtreecommitdiffstats
path: root/dbus
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2006-10-02 18:45:27 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2006-10-02 18:45:27 +0000
commitff99239bd429cb3335406dff1761a0a54ad2996b (patch)
tree31d3551bdf13402efa9047bd7b87cbaaa023bf0a /dbus
parent254524928ac070b59c8a3a089df2279f0021a7cf (diff)
* dbus/dbus-sysdeps.c (_dbus_abort): Remove from
#ifndef DBUS_DISABLE_ASSERTS macro to fix distcheck * dbus/dbus-sysdeps-unix.c (_dbus_print_backtrace): Remove from #if !defined (DBUS_DISABLE_ASSERT) || defined(DBUS_BUILD_TESTS) macro because _dbus_abort calls it * tools/Makefile.am: Add dbus-launch.h to the source list so distcheck works
Diffstat (limited to 'dbus')
-rw-r--r--dbus/dbus-sysdeps-unix.c2
-rw-r--r--dbus/dbus-sysdeps.c3
2 files changed, 1 insertions, 4 deletions
diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c
index 22ef9969..ce565884 100644
--- a/dbus/dbus-sysdeps-unix.c
+++ b/dbus/dbus-sysdeps-unix.c
@@ -2127,7 +2127,6 @@ _dbus_set_fd_nonblocking (int fd,
return TRUE;
}
-#if !defined (DBUS_DISABLE_ASSERT) || defined(DBUS_BUILD_TESTS)
/**
* On GNU libc systems, print a crude backtrace to stderr. On other
* systems, print "no backtrace support" and block for possible gdb
@@ -2162,7 +2161,6 @@ _dbus_print_backtrace (void)
fprintf (stderr, " D-Bus not compiled with backtrace support so unable to print a backtrace\n");
#endif
}
-#endif /* asserts or tests enabled */
/**
* Creates a full-duplex pipe (as in socketpair()).
diff --git a/dbus/dbus-sysdeps.c b/dbus/dbus-sysdeps.c
index b7040abf..d1a48617 100644
--- a/dbus/dbus-sysdeps.c
+++ b/dbus/dbus-sysdeps.c
@@ -53,7 +53,7 @@ _DBUS_DEFINE_GLOBAL_LOCK (sid_atom_cache);
* @addtogroup DBusInternalsUtils
* @{
*/
-#ifndef DBUS_DISABLE_ASSERT
+
/**
* Aborts the program with SIGABRT (dumping core).
*/
@@ -75,7 +75,6 @@ _dbus_abort (void)
abort ();
_dbus_exit (1); /* in case someone manages to ignore SIGABRT ? */
}
-#endif
/**
* Wrapper for setenv(). If the value is #NULL, unsets