]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: use gnulib's sys/wait.h
authorEric Blake <eblake@redhat.com>
Thu, 29 Apr 2010 03:31:16 +0000 (21:31 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 6 May 2010 20:35:38 +0000 (14:35 -0600)
* configure.ac: Drop sys/wait.h check.
* src/libvirt.c (includes): Use header unconditionally.
* src/remote/remote_driver.c (includes): Likewise.
* src/storage/storage_backend.c (includes): Likewise.
* src/util/ebtables.c (includes): Likewise.
* src/util/hooks.c (includes): Likewise.
* src/util/iptables.c (includes): Likewise.
* src/util/util.c (includes): Likewise.

bootstrap.conf
configure.ac
src/libvirt.c
src/remote/remote_driver.c
src/storage/storage_backend.c
src/util/ebtables.c
src/util/hooks.c
src/util/iptables.c
src/util/util.c

index e85f869c70695682180f7d3afbf49290079fd611..baf0bc2012593c60eaa1ddd925ef8510fe3aa67f 100644 (file)
@@ -57,6 +57,7 @@ strptime
 strsep
 strtok_r
 sys_stat
+sys_wait
 time_r
 timegm
 uname
index 18da6067301ab3c447207c7584c6a7c7803cdd18..12646e01c29e089858899d9ca65d24a852a3020d 100644 (file)
@@ -122,7 +122,7 @@ LIBS=$old_libs
 
 dnl Availability of various common headers (non-fatal if missing).
 AC_CHECK_HEADERS([pwd.h paths.h regex.h sys/syslimits.h \
-  sys/wait.h sched.h termios.h sys/poll.h syslog.h mntent.h net/ethernet.h])
+  sched.h termios.h sys/poll.h syslog.h mntent.h net/ethernet.h])
 
 dnl Where are the XDR functions?
 dnl If portablexdr is installed, prefer that.
index 028115c4508756170ededfc9fa4291c257fc97a4..eb053375ae39a2e6fe901840f2f0b0eba05a7bc4 100644 (file)
@@ -18,9 +18,7 @@
 #include <sys/stat.h>
 #include <unistd.h>
 #include <assert.h>
-#ifdef HAVE_SYS_WAIT_H
-# include <sys/wait.h>
-#endif
+#include <sys/wait.h>
 #include <time.h>
 #include <gcrypt.h>
 
index bf53da41ce03ee8c7f47c061a899c8b881dbaedb..72cf2925c7aea6c74450c0d0be23483ea78a035f 100644 (file)
@@ -33,6 +33,7 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <arpa/inet.h>
+#include <sys/wait.h>
 
 /* Windows socket compatibility functions. */
 #include <errno.h>
 # include <netinet/tcp.h>
 #endif
 
-#ifdef HAVE_SYS_WAIT_H
-# include <sys/wait.h>
-#endif
-
 #ifdef HAVE_PWD_H
 # include <pwd.h>
 #endif
index be87a81d989905396a69af75d2647c66342afdcc..7df61cde1d0e8148527eb399b20f374ea6946394 100644 (file)
@@ -29,9 +29,7 @@
 # include <regex.h>
 #endif
 #include <sys/types.h>
-#if HAVE_SYS_WAIT_H
-# include <sys/wait.h>
-#endif
+#include <sys/wait.h>
 #include <unistd.h>
 #include <fcntl.h>
 #include <stdint.h>
index a6afdf8ce640fa48dc0ebaca3ba1b5debe67c9a3..e2b96085e649d0046e7f518d17d447d5551b417f 100644 (file)
@@ -1,6 +1,6 @@
 /*
- * Copyright (C) 2009 IBM Corp.
  * Copyright (C) 2007-2010 Red Hat, Inc.
+ * Copyright (C) 2009 IBM Corp.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
 #include <fcntl.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-
-#ifdef HAVE_SYS_WAIT_H
-# include <sys/wait.h>
-#endif
+#include <sys/wait.h>
 
 #ifdef HAVE_PATHS_H
 # include <paths.h>
index 507029fd3c9225a0a53d4c57ed6ebdaa9c5a36a2..dec922315da0cae09b55d52c2db0a44afea6202c 100644 (file)
@@ -24,9 +24,7 @@
 #include <config.h>
 
 #include <sys/types.h>
-#if HAVE_SYS_WAIT_H
-# include <sys/wait.h>
-#endif
+#include <sys/wait.h>
 #include <sys/stat.h>
 #include <unistd.h>
 #include <stdlib.h>
index facc4daa66de5e42a7be8a3d33df42470e9c6ca4..4f95a02a1bd1c9216ace1481e5cde8acc86ea4eb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007-2009 Red Hat, Inc.
+ * Copyright (C) 2007-2010 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
 #include <fcntl.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-
-#ifdef HAVE_SYS_WAIT_H
-# include <sys/wait.h>
-#endif
+#include <sys/wait.h>
 
 #ifdef HAVE_PATHS_H
 # include <paths.h>
index bfd37e049d8c063ea7a8bc2f713becace3c69833..26ac6baeeae5b45b609062d638ef8e90ecd966a7 100644 (file)
@@ -37,9 +37,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/ioctl.h>
-#if HAVE_SYS_WAIT_H
-# include <sys/wait.h>
-#endif
+#include <sys/wait.h>
 #if HAVE_MMAP
 # include <sys/mman.h>
 #endif