diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-20 00:23:14 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-20 00:23:14 +0000 |
commit | abf997389de6e4b73f6010ae4ec6fbda522dfdad (patch) | |
tree | 0514d07f5c392a2ad00ded7a0b0e290f645f284c /configure | |
parent | 8c21c9f1d9ec00163ee18d64eeecbfbfcb70d0a5 (diff) | |
download | mandoc-abf997389de6e4b73f6010ae4ec6fbda522dfdad.tar.gz |
Linux compatibility: Work around the lack of EFTYPE and protect <err.h>.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -45,6 +45,7 @@ STATIC="-static" BUILD_CGI=0 HAVE_DIRENT_NAMLEN= +HAVE_EFTYPE= HAVE_ERR= HAVE_FTS= HAVE_GETLINE= @@ -173,6 +174,7 @@ runtest() { # --- library functions --- runtest dirent-namlen DIRENT_NAMLEN || true +runtest EFTYPE EFTYPE || true runtest err ERR || true runtest fts FTS || true runtest getline GETLINE || true @@ -245,6 +247,7 @@ echo "#define MAN_CONF_FILE \"/etc/${MANM_MANCONF}\"" echo "#define MANPATH_DEFAULT \"${MANPATH_DEFAULT}\"" [ -n "${OSNAME}" ] && echo "#define OSNAME \"${OSNAME}\"" [ -n "${HOMEBREWDIR}" ] && echo "#define HOMEBREWDIR \"${HOMEBREWDIR}\"" +[ ${HAVE_EFTYPE} -eq 0 ] && echo "#define EFTYPE EINVAL" cat << __HEREDOC__ #define HAVE_DIRENT_NAMLEN ${HAVE_DIRENT_NAMLEN} |