Fix implicit declaration configuration errors with Xcode 12
Some configure could fail with errors like the following: conftest.c:56:33: error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration] See https://trac.macports.org/ticket/61672 See #22946. (cherry picked from commit da4b42688a6cd5444eefb91bf40183d88203ffca)
This commit is contained in:
parent
55c1ad85b4
commit
a0b7450f69
6
configure
vendored
6
configure
vendored
@ -26147,6 +26147,7 @@ else
|
||||
|
||||
#include <zlib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
@ -26286,6 +26287,7 @@ else
|
||||
|
||||
#include <png.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
@ -37959,7 +37961,9 @@ if ${wx_cv_inotify_usable+:} false; then :
|
||||
else
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
int main() { return inotify_init(); }
|
||||
|
||||
#include <sys/inotify.h>
|
||||
int main() { return inotify_init(); }
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
wx_cv_inotify_usable=yes
|
||||
|
@ -2514,6 +2514,7 @@ if test "$wxUSE_ZLIB" != "no" ; then
|
||||
[
|
||||
#include <zlib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
@ -2599,6 +2600,7 @@ if test "$wxUSE_LIBPNG" != "no" ; then
|
||||
[
|
||||
#include <png.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
@ -5623,7 +5625,9 @@ if test "$wxUSE_FSWATCHER" = "yes"; then
|
||||
[whether inotify is usable],
|
||||
wx_cv_inotify_usable,
|
||||
AC_LINK_IFELSE(
|
||||
[AC_LANG_SOURCE([int main() { return inotify_init(); }])],
|
||||
[AC_LANG_SOURCE([
|
||||
#include <sys/inotify.h>
|
||||
int main() { return inotify_init(); }])],
|
||||
[wx_cv_inotify_usable=yes],
|
||||
[wx_cv_inotify_usable=no]
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user