#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#ifdef HAVE_SIGNAL_H
#include <signal.h>
+#endif
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
}
break;
#endif
+#ifdef SIGTERM
case SIGTERM:
_dbus_loop_quit (bus_context_get_loop (context));
break;
+#endif
}
}
#ifdef SIGHUP
_dbus_set_signal_handler (SIGHUP, signal_handler);
#endif
+#ifdef SIGTERM
_dbus_set_signal_handler (SIGTERM, signal_handler);
+#endif
#ifdef DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX
_dbus_set_signal_handler (SIGIO, signal_handler);
#endif /* DBUS_BUS_ENABLE_DNOTIFY_ON_LINUX */
AC_CHECK_HEADERS(errno.h)
+AC_CHECK_HEADERS(signal.h)
+
+AC_CHECK_HEADERS(locale.h)
+
AC_CHECK_HEADERS(byteswap.h)
AC_CHECK_HEADERS(unistd.h)
*
* These are the standard ANSI C headers...
*/
+#if HAVE_LOCALE_H
#include <locale.h>
+#endif
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
fail_pos = NULL;
+#if HAVE_LOCALE_H
locale_data = localeconv ();
decimal_point = locale_data->decimal_point;
- decimal_point_len = strlen (decimal_point);
+#else
+ decimal_point = ".";
+#endif
+ decimal_point_len = strlen (decimal_point);
_dbus_assert (decimal_point_len != 0);
decimal_point_pos = NULL;
#include "dbus-test.h"
#include <stdio.h>
#include <stdlib.h>
+#if HAVE_LOCALE_H
#include <locale.h>
+#endif
int
main (int argc,
const char *test_data_dir;
const char *specific_test;
+#if HAVE_LOCALE_H
setlocale(LC_ALL, "");
-
+#endif
if (argc > 1)
test_data_dir = argv[1];
/* This is simply a process that segfaults */
#include <config.h>
#include <stdlib.h>
+#ifdef HAVE_SIGNAL_H
#include <signal.h>
+#endif
#ifdef HAVE_SETRLIMIT
#include <sys/resource.h>