Skip to content

Commit 3ae5fc9

Browse files
committed
patch 8.2.3406: on some systems tests fail without _REENTRANT
Problem: On some systems tests fail without _REENTRANT. (Elimar Riesebieter) Solution: Add -D_REENTRANT in configure. (closes #7402)
1 parent ec1b096 commit 3ae5fc9

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

src/auto/configure

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14960,6 +14960,10 @@ $as_echo "no" >&6; }
1496014960
fi
1496114961
fi
1496214962

14963+
if `echo "$CFLAGS" | grep -v D_XEENTRANT >/dev/null`; then
14964+
CFLAGS="$CFLAGS -D_REENTRANT"
14965+
fi
14966+
1496314967
DEPEND_CFLAGS_FILTER=
1496414968
if test "$GCC" = yes; then
1496514969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5

src/configure.ac

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4504,6 +4504,12 @@ if test "$MACOS_X" = "yes"; then
45044504
fi
45054505
fi
45064506

4507+
dnl On some systems REENTRANT needs to be defined. It should not hurt to use
4508+
dnl it everywhere.
4509+
if `echo "$CFLAGS" | grep -v D_REENTRANT >/dev/null`; then
4510+
CFLAGS="$CFLAGS -D_REENTRANT"
4511+
fi
4512+
45074513
dnl gcc 3.1 changed the meaning of -MM. The only solution appears to be to
45084514
dnl use "-isystem" instead of "-I" for all non-Vim include dirs.
45094515
dnl But only when making dependencies, cproto and lint don't take "-isystem".

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,8 @@ static char *(features[]) =
755755

756756
static int included_patches[] =
757757
{ /* Add new patch number below this line */
758+
/**/
759+
3406,
758760
/**/
759761
3405,
760762
/**/

0 commit comments

Comments
 (0)