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 Closes #22946.
This commit is contained in:
parent
5c72c7af35
commit
da4b42688a
2 changed files with 10 additions and 2 deletions
|
|
@ -2215,6 +2215,7 @@ if test "$wxUSE_ZLIB" != "no" ; then
|
|||
[
|
||||
#include <zlib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
|
|
@ -2300,6 +2301,7 @@ if test "$wxUSE_LIBPNG" != "no" ; then
|
|||
[
|
||||
#include <png.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
|
|
@ -5086,7 +5088,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…
Add table
Add a link
Reference in a new issue