]> 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)
committerJaco Kroon <jaco@uls.co.za>
Mon, 15 May 2023 12:51:42 +0000 (12:51 +0000)
commitf178bf78b79cd874f95fd163328cf02ae9815844
tree295ecec3f903f5b24e9aa76878d8d088c09b2c6c
parent2d18fb6e9d66e07189f91f238ce496da4c739bf8
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