From f427a68fd0bdb03c23bd48e97d5b278bac256e60 Mon Sep 17 00:00:00 2001 From: "Paul B. Henson" Date: Sat, 4 Jul 2015 13:58:22 -0700 Subject: [PATCH] Add paths.h stub for systems (such as Solaris 10) without it. --- configure.ac | 2 +- include/Makefile.am | 1 + include/paths.h | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 include/paths.h diff --git a/configure.ac b/configure.ac index 7339717..f456fdc 100644 --- a/configure.ac +++ b/configure.ac @@ -195,7 +195,7 @@ if test "x$ac_cv_have___va_copy" = "xyes" ; then AC_DEFINE([HAVE___VA_COPY], [1], [Define if __va_copy exists]) fi -AC_CHECK_HEADERS([sys/sysctl.h err.h md5.h sha2.h]) +AC_CHECK_HEADERS([sys/sysctl.h err.h md5.h paths.h sha2.h]) AC_CHECK_HEADERS([sys/sensors.h], AM_CONDITIONAL(HAVE_SENSORS, true), AM_CONDITIONAL(HAVE_SENSORS, false) diff --git a/include/Makefile.am b/include/Makefile.am index ec9d014..8e286f2 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -12,6 +12,7 @@ noinst_HEADERS += md5.h noinst_HEADERS += sha2.h noinst_HEADERS += stdlib.h noinst_HEADERS += Makefile.in +noinst_HEADERS += paths.h noinst_HEADERS += poll.h noinst_HEADERS += time.h noinst_HEADERS += tls.h diff --git a/include/paths.h b/include/paths.h new file mode 100644 index 0000000..cd04d90 --- /dev/null +++ b/include/paths.h @@ -0,0 +1,18 @@ +/* + * paths.h compatibility shim + */ + +#ifdef HAVE_PATHS_H + +#include_next + +#else + +#ifndef LIBCOMPAT_PATHS_H +#define LIBCOMPAT_PATHS_H + +#define _PATH_DEVNULL "/dev/null" + +#endif + +#endif