]> 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)
committerAsterisk Development Team <asteriskteam@digium.com>
Mon, 10 Jul 2023 11:49:47 +0000 (11:49 +0000)
commitdda4dd513f225cd6ea82fa6d556a0fdaac16c2ab
tree23ada710b8078c6595aaf5838a04479599525d6c
parentbbf47fefabbc4432405a5ce65077839e9b997474
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>
(cherry picked from commit f178bf78b79cd874f95fd163328cf02ae9815844)
configure
configure.ac