mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-19 16:40:49 +01:00
configure: Avoid exit() when checking for __sync_sub_and_fetch()
Use of exit() requires a stdlib.h include. This check was failing for me
since the compiler defaulted to -Werror=implicit-function-declaration, so
__sync_sub_and_fetch() support was not dectected.
(cherry picked from commit 56e52a4212)
Backported-from: dbus!320
This commit is contained in:
parent
6625f220c4
commit
6d7ec5fc6d
1 changed files with 1 additions and 1 deletions
|
|
@ -613,7 +613,7 @@ AS_IF([test -n "$dbus_va_copy_func"],
|
|||
AC_CACHE_CHECK([whether $CC knows __sync_sub_and_fetch()],
|
||||
dbus_cv_sync_sub_and_fetch,
|
||||
[AC_LINK_IFELSE([
|
||||
AC_LANG_PROGRAM([[]], [[int a = 4; int b = __sync_sub_and_fetch(&a, 4); exit(b); ]])],
|
||||
AC_LANG_PROGRAM([[]], [[int a = 4; int b = __sync_sub_and_fetch(&a, 4); return b; ]])],
|
||||
[dbus_cv_sync_sub_and_fetch=yes],
|
||||
[dbus_cv_sync_sub_and_fetch=no])
|
||||
])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue