diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2022-12-10 19:03:37 +0100 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2022-12-18 18:32:40 +0100 |
commit | 7eda11c87c30c735058e9393d54b631a74cf566a (patch) | |
tree | e4ef7d02b0e29aefabbeef304cc3a3cb26a3f01a /lang/gjs/files/patch-test_gjs-tests.cpp | |
parent | graphics/py-pygraphviz: fix build with clang 15 (diff) |
astro/cfitsio: fix build with clang 15
During an exp-run for llvm 15 (see bug 265425), it turned out that
astro/cfitsio failed to build with clang 15:
drvrnet.c:3887:23: warning: call to undeclared function 'gethostbyname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
hostent = gethostbyname(localhost);
^
drvrnet.c:3887:21: error: incompatible integer to pointer conversion assigning to 'struct hostent *' from 'int' [-Wint-conversion]
hostent = gethostbyname(localhost);
^ ~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
This is because the configure script defines _XOPEN_SOURCE=700, for
unclear reasons, and this hides the gethostbyname() declaration in
/usr/include/netdb.h. Fix it by removing the line that adds the define.
PR: 268302
Approved by: portmgr (tcberner)
MFH: 2022Q4
Diffstat (limited to 'lang/gjs/files/patch-test_gjs-tests.cpp')
0 files changed, 0 insertions, 0 deletions