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>
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])
#include <sys/un.h>
#include <sys/personality.h>
#include <unistd.h>
-#include <paths.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
-#include <paths.h>
#include <pwd.h>
#include <sys/wait.h>
#include <sys/ioctl.h>
#include <errno.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <paths.h>
#include <pwd.h>
#include <sys/wait.h>
#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>
#include <sys/stat.h>
#include <fcntl.h>
#include <signal.h>
-#include <paths.h>
#include <pwd.h>
#include <sys/wait.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <signal.h>
-#ifdef HAVE_PATHS_H
-# include <paths.h>
-#endif
-
#include "internal.h"
#include "datatypes.h"
#include "virbitmap.h"
#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"
# include <libdevmapper.h>
#endif
-#ifdef HAVE_PATHS_H
-# include <paths.h>
-#endif
#include <netdb.h>
#ifdef HAVE_GETPWUID_R
# include <pwd.h>
#include <errno.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <paths.h>
#include <pwd.h>
#include <sys/wait.h>
#include <sys/time.h>
# endif
#endif
-#ifdef HAVE_PATHS_H
-# include <paths.h>
-#endif
-
#define VIR_FROM_THIS VIR_FROM_NONE
VIR_LOG_INIT("tests.testutils");