]> xenbits.xensource.com Git - libvirt.git/commitdiff
Drop paths.h include
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 17 Mar 2016 10:44:01 +0000 (11:44 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 18 Mar 2016 08:43:45 +0000 (09:43 +0100)
We include the file in plenty of places. This is mostly due to
historical reasons. The only place that needs something from the
header file is storage_backend_fs which opens _PATH_MOUNTED. But
it gets the file included indirectly via mntent.h. At no other
place in our code we need _PATH_.*. Drop the include and
configure check then.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
configure.ac
src/lxc/lxc_controller.c
src/network/bridge_driver.c
src/openvz/openvz_driver.c
src/qemu/qemu_driver.c
src/uml/uml_driver.c
src/util/virdnsmasq.c
src/util/viriptables.c
src/util/virutil.c
src/vz/vz_driver.c
tests/testutils.c

index eed20502296bd1e5f80e8d7d82c8bfcf5c3fce28..d52ddd72e64cd34d8621c2f864335e36f0d01a98 100644 (file)
@@ -323,7 +323,7 @@ fi
 LIBS=$old_libs
 
 dnl Availability of various common headers (non-fatal if missing).
-AC_CHECK_HEADERS([pwd.h paths.h regex.h sys/un.h \
+AC_CHECK_HEADERS([pwd.h regex.h sys/un.h \
   sys/poll.h syslog.h mntent.h net/ethernet.h linux/magic.h \
   sys/un.h sys/syscall.h sys/sysctl.h netinet/tcp.h ifaddrs.h \
   libtasn1.h sys/ucred.h sys/mount.h])
index b1b55f0e02e1eb171e3a579acd45bcc2191e3607..8b5ec4c840c6a9ab42c9abf459b0612f1e427ac2 100644 (file)
@@ -31,7 +31,6 @@
 #include <sys/un.h>
 #include <sys/personality.h>
 #include <unistd.h>
-#include <paths.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <signal.h>
index 01c2ed6b1f19519c99c692775ede3b7bf8def9ae..a09a7e474fc57886e33cccb64cd7519d34ca7027 100644 (file)
@@ -36,7 +36,6 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <signal.h>
-#include <paths.h>
 #include <pwd.h>
 #include <sys/wait.h>
 #include <sys/ioctl.h>
index c2d54ad530b65e15ef29997faab49babe4dc2288..e154a0f795d9817f46f1b8c842dad2bf021ef77f 100644 (file)
@@ -39,7 +39,6 @@
 #include <errno.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <paths.h>
 #include <pwd.h>
 #include <sys/wait.h>
 
index ff0101272248459d00627a3b53215cbaf8e0f39e..08e784b2c4bc50e120256678b24a4fbad0b5d1b0 100644 (file)
@@ -37,7 +37,6 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <signal.h>
-#include <paths.h>
 #include <sys/wait.h>
 #include <sys/ioctl.h>
 #include <sys/un.h>
index 9fcdc84118d5bfeffe718e7ffdf95ef9e4ce935f..84e1df8928ba8f9e79dc81e0ca73bd895673d9e5 100644 (file)
@@ -36,7 +36,6 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <signal.h>
-#include <paths.h>
 #include <pwd.h>
 #include <sys/wait.h>
 #include <sys/ioctl.h>
index 18e53a34b8016abbba5724251bfbbe65635bad1d..da3e6035b6bf33d58e7b1308c723aeac9c8d12ab 100644 (file)
 #include <sys/stat.h>
 #include <signal.h>
 
-#ifdef HAVE_PATHS_H
-# include <paths.h>
-#endif
-
 #include "internal.h"
 #include "datatypes.h"
 #include "virbitmap.h"
index 46b4017a34931f314222966edd94405ce2a56b7d..e9219548b323bb0929cf65e8d75f8f122271f9a6 100644 (file)
 #include <sys/stat.h>
 #include <sys/wait.h>
 
-#ifdef HAVE_PATHS_H
-# include <paths.h>
-#endif
-
 #include "internal.h"
 #include "viriptables.h"
 #include "vircommand.h"
index bb9604a0c1ffb9c99e454e84878a8c376f773046..b401f8d4968d9ab9166a47d0d9da068fe1373bf1 100644 (file)
@@ -45,9 +45,6 @@
 # include <libdevmapper.h>
 #endif
 
-#ifdef HAVE_PATHS_H
-# include <paths.h>
-#endif
 #include <netdb.h>
 #ifdef HAVE_GETPWUID_R
 # include <pwd.h>
index 604e7a8ee346b40f8dcf5b9b9dbf2de7788ea752..e12a95acda36e557eb52605bb2552cdb6c21e1c7 100644 (file)
@@ -34,7 +34,6 @@
 #include <errno.h>
 #include <sys/stat.h>
 #include <fcntl.h>
-#include <paths.h>
 #include <pwd.h>
 #include <sys/wait.h>
 #include <sys/time.h>
index b1bd4e88773523635f259c757c58b6060967851f..88c4d4b253a7870548ea6c9f03ea64a9fdaaa0be 100644 (file)
 # endif
 #endif
 
-#ifdef HAVE_PATHS_H
-# include <paths.h>
-#endif
-
 #define VIR_FROM_THIS VIR_FROM_NONE
 
 VIR_LOG_INIT("tests.testutils");