]> granicus.if.org Git - vim/commitdiff
patch 8.2.3406: on some systems tests fail without _REENTRANT v8.2.3406
authorBram Moolenaar <Bram@vim.org>
Mon, 6 Sep 2021 16:57:30 +0000 (18:57 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 6 Sep 2021 16:57:30 +0000 (18:57 +0200)
Problem:    On some systems tests fail without _REENTRANT. (Elimar
            Riesebieter)
Solution:   Add -D_REENTRANT in configure. (closes #7402)

src/auto/configure
src/configure.ac
src/version.c

index fba6a19b538949b69236fc2e0a468a1aa288014a..4f436322488f8a9e48a25041dad73fa3dbbc1ea7 100755 (executable)
@@ -14960,6 +14960,10 @@ $as_echo "no" >&6; }
   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
index 5ec955757fc6912c3fd8a7e7995c97176442818b..4cd6dea1f476feb85b06d82cebd41c248a34d3b1 100644 (file)
@@ -4504,6 +4504,12 @@ if test "$MACOS_X" = "yes"; then
   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".
index 742f89915b312a2450c29b52328c2f9a07fc32ee..d56e443ab3d436704f7163460bc83179c4b0ac5e 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3406,
 /**/
     3405,
 /**/