From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id f91908b3 for ; Tue, 2 Aug 2016 06:19:56 -0500 (EST) Date: Tue, 2 Aug 2016 06:19:56 -0500 (EST) Message-Id: <5868003536972679145.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: 1.13 backport: handle absence of PATH_MAX X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- 1.13 backport: handle absence of PATH_MAX Tags: ---- VERSION_1_13 Modified Files: -------------- mdocml: Makefile configure configure.local.example Revision Data ------------- Index: Makefile =================================================================== RCS file: /home/cvs/mdocml/mdocml/Makefile,v retrieving revision 1.488.2.1 retrieving revision 1.488.2.2 diff -LMakefile -LMakefile -u -p -r1.488.2.1 -r1.488.2.2 --- Makefile +++ Makefile @@ -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 \ Index: configure =================================================================== RCS file: /home/cvs/mdocml/mdocml/configure,v retrieving revision 1.43.2.2 retrieving revision 1.43.2.3 diff -Lconfigure -Lconfigure -u -p -r1.43.2.2 -r1.43.2.3 --- configure +++ configure @@ -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 \"${MANPAT [ -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} Index: configure.local.example =================================================================== RCS file: /home/cvs/mdocml/mdocml/configure.local.example,v retrieving revision 1.14.2.2 retrieving revision 1.14.2.3 diff -Lconfigure.local.example -Lconfigure.local.example -u -p -r1.14.2.2 -r1.14.2.3 --- configure.local.example +++ configure.local.example @@ -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 -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv