netresolv: enable weak symbols

It's simpler to have these around, they allow autotools to find the
functions the regular way (using AC_SEARCH_LIBS) as the autotools don't
use the include file and can't see the #define we are putting there to
redirect to the __ prefixed version of the methods.

Change-Id: I6a9743e88503fbdcba98e276375bc11f73a64411
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1889
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
Adrien Destugues 2019-09-27 18:01:02 +02:00 committed by Adrien Destugues
parent 1f391e37ea
commit cf1a78566c
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,8 @@
# define inet_ntop __inet_ntop
# define inet_nsap_addr __inet_nsap_addr
# define inet_nsap_ntoa __inet_nsap_ntoa
#define __weak_alias(alias, sym) __asm(".weak " #alias "\n" #alias " = " #sym);
#endif
struct group; /* silence warning */