Skip to content

Commit

Permalink
patch 8.2.3420: _REENTRANT defined more than once
Browse files Browse the repository at this point in the history
Problem:    _REENTRANT defined more than once.
Solution:   Fix configure script. (Christian Brabandt, closes #8852)
  • Loading branch information
chrisbra authored and brammool committed Sep 9, 2021
1 parent 0325d39 commit 6b9efdd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/auto/configure
Original file line number Diff line number Diff line change
Expand Up @@ -12978,7 +12978,9 @@ if test "$enable_canberra" = "yes"; then
$as_echo_n "checking for libcanberra... " >&6; }
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $canberra_cflags"
if `echo "$CFLAGS" | grep -v "$canberra_cflags" >/dev/null`; then
CFLAGS="$CFLAGS $canberra_cflags"
fi
LIBS="$LIBS $canberra_lib"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
Expand Down Expand Up @@ -14960,7 +14962,7 @@ $as_echo "no" >&6; }
fi
fi

if `echo "$CFLAGS" | grep -v D_XEENTRANT >/dev/null`; then
if `echo "$CFLAGS" | grep -v D_REENTRANT >/dev/null`; then
CFLAGS="$CFLAGS -D_REENTRANT"
fi

Expand Down
4 changes: 3 additions & 1 deletion src/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3756,7 +3756,9 @@ if test "$enable_canberra" = "yes"; then
AC_MSG_CHECKING(for libcanberra)
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $canberra_cflags"
if `echo "$CFLAGS" | grep -v "$canberra_cflags" >/dev/null`; then
CFLAGS="$CFLAGS $canberra_cflags"
fi
LIBS="$LIBS $canberra_lib"
AC_TRY_LINK([
# include <canberra.h>
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3420,
/**/
3419,
/**/
Expand Down

0 comments on commit 6b9efdd

Please sign in to comment.