Browse Source

Add paths.h stub for systems (such as Solaris 10) without it.

OPENBSD_5_8
Paul B. Henson 9 years ago
committed by Brent Cook
parent
commit
f427a68fd0
3 changed files with 20 additions and 1 deletions
  1. +1
    -1
      configure.ac
  2. +1
    -0
      include/Makefile.am
  3. +18
    -0
      include/paths.h

+ 1
- 1
configure.ac View File

@ -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]) AC_DEFINE([HAVE___VA_COPY], [1], [Define if __va_copy exists])
fi 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], AC_CHECK_HEADERS([sys/sensors.h],
AM_CONDITIONAL(HAVE_SENSORS, true), AM_CONDITIONAL(HAVE_SENSORS, true),
AM_CONDITIONAL(HAVE_SENSORS, false) AM_CONDITIONAL(HAVE_SENSORS, false)


+ 1
- 0
include/Makefile.am View File

@ -12,6 +12,7 @@ noinst_HEADERS += md5.h
noinst_HEADERS += sha2.h noinst_HEADERS += sha2.h
noinst_HEADERS += stdlib.h noinst_HEADERS += stdlib.h
noinst_HEADERS += Makefile.in noinst_HEADERS += Makefile.in
noinst_HEADERS += paths.h
noinst_HEADERS += poll.h noinst_HEADERS += poll.h
noinst_HEADERS += time.h noinst_HEADERS += time.h
noinst_HEADERS += tls.h noinst_HEADERS += tls.h

+ 18
- 0
include/paths.h View File

@ -0,0 +1,18 @@
/*
* paths.h compatibility shim
*/
#ifdef HAVE_PATHS_H
#include_next <paths.h>
#else
#ifndef LIBCOMPAT_PATHS_H
#define LIBCOMPAT_PATHS_H
#define _PATH_DEVNULL "/dev/null"
#endif
#endif

Loading…
Cancel
Save