To: vim_dev@googlegroups.com Subject: Patch 8.2.3406 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3406 Problem: On some systems tests fail without _REENTRANT. (Elimar Riesebieter) Solution: Add -D_REENTRANT in configure. (closes #7402) Files: src/configure.ac, src/auto/configure *** ../vim-8.2.3405/src/configure.ac 2021-06-23 15:41:49.352102395 +0200 --- src/configure.ac 2021-09-06 18:54:49.130622625 +0200 *************** *** 4504,4509 **** --- 4504,4515 ---- fi fi + dnl On some systems REENTRANT needs to be defined. It should not hurt to use + dnl it everywhere. + if `echo "$CFLAGS" | grep -v D_REENTRANT >/dev/null`; then + CFLAGS="$CFLAGS -D_REENTRANT" + fi + dnl gcc 3.1 changed the meaning of -MM. The only solution appears to be to dnl use "-isystem" instead of "-I" for all non-Vim include dirs. dnl But only when making dependencies, cproto and lint don't take "-isystem". *** ../vim-8.2.3405/src/auto/configure 2021-06-23 15:41:49.356102386 +0200 --- src/auto/configure 2021-09-06 18:53:33.258814628 +0200 *************** *** 14960,14965 **** --- 14960,14969 ---- fi fi + if `echo "$CFLAGS" | grep -v D_XEENTRANT >/dev/null`; then + CFLAGS="$CFLAGS -D_REENTRANT" + fi + DEPEND_CFLAGS_FILTER= if test "$GCC" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5 *** ../vim-8.2.3405/src/version.c 2021-09-06 17:10:55.073336145 +0200 --- src/version.c 2021-09-06 18:56:31.946364458 +0200 *************** *** 757,758 **** --- 757,760 ---- { /* Add new patch number below this line */ + /**/ + 3406, /**/ -- If someone questions your market projections, simply point out that your target market is "People who are nuts" and "People who will buy any damn thing". Nobody is going to tell you there aren't enough of those people to go around. (Scott Adams - The Dilbert principle) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///