1
0
forked from aniani/vim

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)
This commit is contained in:
Bram Moolenaar
2021-09-06 18:57:30 +02:00
parent ec1b0968aa
commit 3ae5fc9a6a
3 changed files with 12 additions and 0 deletions

View 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".