diff options
author | Tyler Stromberg <tylers@mac.com> | 2020-07-09 14:48:17 -0700 |
---|---|---|
committer | Björn Gustavsson <bjorn@erlang.org> | 2021-02-18 12:04:00 +0100 |
commit | f32b878cfbadf1243bf88b47c80f254d47a174d2 (patch) | |
tree | 2be543570e3c99671e69f5d85d6356d68f832f9e | |
parent | fd86ab1897f264696b081eed1a5c8112892c0fea (diff) | |
download | erlang-f32b878cfbadf1243bf88b47c80f254d47a174d2.tar.gz |
Add missing include statements in in6addr tests
Compilation is failing on macOS Big Sur due to in6addr_any and in6addr_loopback
being redeclared. The underlying issue is that the tests for these are failing
due to missing include statements:
conftest.c:197:1: error: implicitly declaring library function 'printf'
with type 'int (const char *, ...)' [-Werror,-Wimplicit-function-declaration]
printf("%d", in6addr_any.s6_addr[16]);
^
conftest.c:197:1: note: include the header <stdio.h> or explicitly provide
a declaration for 'printf'
ERL-1306
-rw-r--r-- | erts/configure.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/configure.in b/erts/configure.in index 9fd50c7699..0271f5efa1 100644 --- a/erts/configure.in +++ b/erts/configure.in @@ -2145,6 +2145,7 @@ AC_CACHE_CHECK( #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> + #include <stdio.h> ]], [[printf("%d", in6addr_any.s6_addr[16]);]] )], @@ -2168,6 +2169,7 @@ AC_CACHE_CHECK( #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> + #include <stdio.h> ]], [[printf("%d", in6addr_loopback.s6_addr[16]);]] )], |