]> git.ipfire.org Git - thirdparty/asterisk.git/commit
configure: fix test code to match gethostbyname_r prototype.
authorJaco Kroon <jaco@uls.co.za>
Wed, 10 May 2023 21:13:17 +0000 (23:13 +0200)
committerGeorge Joseph <gjoseph@sangoma.com>
Mon, 15 May 2023 13:01:13 +0000 (07:01 -0600)
commit3067977eac4c9ae7b403ca9f98add23e11adad47
tree0b21cbce68a87995ad9c8aca70d5ff838cc40cd4
parent3e2a28fc3d17f2e9c275108753feaa823115d9df
configure: fix test code to match gethostbyname_r prototype.

This enables the test to work with CC=clang.

Without this the test for 6 args would fail with:

utils.c:99:12: error: static declaration of 'gethostbyname_r' follows non-static declaration
static int gethostbyname_r (const char *name, struct hostent *ret, char *buf,
           ^
/usr/include/netdb.h:177:12: note: previous declaration is here
extern int gethostbyname_r (const char *__restrict __name,
           ^

Fixing the expected return type to int sorts this out.

Signed-off-by: Jaco Kroon <jaco@uls.co.za>
configure
configure.ac