diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-08-02 11:19:26 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-08-02 11:19:26 +0000 |
commit | d36f9827b0d45f36d2200a91b9b5600708e2b489 (patch) | |
tree | 3bc304138a86dbcaff923359a874082d2f7fe68d | |
parent | 3214279b89580e66e19f6f2b2f0eef85e22c1165 (diff) | |
download | mandoc-d36f9827b0d45f36d2200a91b9b5600708e2b489.tar.gz mandoc-d36f9827b0d45f36d2200a91b9b5600708e2b489.tar.zst mandoc-d36f9827b0d45f36d2200a91b9b5600708e2b489.zip |
1.13 backport: handle absence of PATH_MAX
-rw-r--r-- | Makefile | 3 | ||||
-rwxr-xr-x | configure | 4 | ||||
-rw-r--r-- | configure.local.example | 3 |
3 files changed, 7 insertions, 3 deletions
@@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.488.2.1 2016/07/20 14:14:07 schwarze Exp $ +# $Id: Makefile,v 1.488.2.2 2016/08/02 11:19:26 schwarze Exp $ # # Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> # Copyright (c) 2011, 2013-2016 Ingo Schwarze <schwarze@openbsd.org> @@ -29,6 +29,7 @@ TESTSRCS = test-dirent-namlen.c \ test-mmap.c \ test-nanosleep.c \ test-ohash.c \ + test-PATH_MAX.c \ test-pledge.c \ test-progname.c \ test-reallocarray.c \ @@ -1,6 +1,6 @@ #!/bin/sh # -# $Id: configure,v 1.43.2.2 2016/07/31 09:47:01 schwarze Exp $ +# $Id: configure,v 1.43.2.3 2016/08/02 11:19:26 schwarze Exp $ # # Copyright (c) 2014, 2015, 2016 Ingo Schwarze <schwarze@openbsd.org> # @@ -209,6 +209,7 @@ runtest getsubopt GETSUBOPT || true runtest isblank ISBLANK || true runtest mkdtemp MKDTEMP || true runtest mmap MMAP || true +runtest PATH_MAX PATH_MAX || true runtest pledge PLEDGE || true runtest sandbox_init SANDBOX_INIT || true runtest progname PROGNAME || true @@ -351,6 +352,7 @@ echo "#define MANPATH_DEFAULT \"${MANPATH_DEFAULT}\"" [ -n "${OSNAME}" ] && echo "#define OSNAME \"${OSNAME}\"" [ -n "${UTF8_LOCALE}" ] && echo "#define UTF8_LOCALE \"${UTF8_LOCALE}\"" [ -n "${HOMEBREWDIR}" ] && echo "#define HOMEBREWDIR \"${HOMEBREWDIR}\"" +[ ${HAVE_PATH_MAX} -eq 0 ] && echo "#define PATH_MAX 4096" cat << __HEREDOC__ #define HAVE_DIRENT_NAMLEN ${HAVE_DIRENT_NAMLEN} diff --git a/configure.local.example b/configure.local.example index 9ae2e3cf..9e2ad874 100644 --- a/configure.local.example +++ b/configure.local.example @@ -1,4 +1,4 @@ -# $Id: configure.local.example,v 1.14.2.2 2016/07/31 09:47:01 schwarze Exp $ +# $Id: configure.local.example,v 1.14.2.3 2016/08/02 11:19:26 schwarze Exp $ # # Copyright (c) 2014, 2015, 2016 Ingo Schwarze <schwarze@openbsd.org> # @@ -272,6 +272,7 @@ HAVE_GETSUBOPT=0 HAVE_ISBLANK=0 HAVE_MKDTEMP=0 HAVE_MMAP=0 +HAVE_PATH_MAX=0 HAVE_PLEDGE=0 HAVE_PROGNAME=0 HAVE_REALLOCARRAY=0 |