mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-06 15:20:31 +01:00
* configure.in,test/test-sleep-forever.c,test/test-names.c:
added configure check for unistd.h.
This commit is contained in:
parent
4d56811851
commit
7f3af4748f
4 changed files with 14 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2007-03-04 Ralf Habacker <ralf.habacker@freenet.de>
|
||||
|
||||
* configure.in,test/test-sleep-forever.c,test/test-names.c:
|
||||
added configure check for unistd.h.
|
||||
|
||||
2007-03-04 Ralf Habacker <ralf.habacker@freenet.de>
|
||||
|
||||
* test/Makefile.am: fixed test data copy problem in
|
||||
|
|
|
|||
|
|
@ -568,6 +568,8 @@ AC_CHECK_HEADERS(execinfo.h, [AC_CHECK_FUNCS(backtrace)])
|
|||
|
||||
AC_CHECK_HEADERS(errno.h)
|
||||
|
||||
AC_CHECK_HEADERS(unistd.h)
|
||||
|
||||
# checking for a posix version of getpwnam_r
|
||||
# if we are cross compiling and can not run the test
|
||||
# assume getpwnam_r is the posix version
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <dbus/dbus.h>
|
||||
#include <dbus/dbus-connection-internal.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#define REMOVE_CONNECTION 0
|
||||
#define ADD_CONNECTION 1
|
||||
|
|
|
|||
|
|
@ -1,6 +1,10 @@
|
|||
/* This is a process that just sleeps infinitely. */
|
||||
|
||||
#include <config.h>
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue