1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/lib/tsocket
Amitay Isaacs 8d5534d236 lib/tsocket: Fix build on Freebsd
This fixes the following build error on freebsd.

[1567/3959] Compiling lib/tsocket/tsocket_bsd.c
../../lib/tsocket/tsocket_bsd.c:415:8: error: use of undeclared identifier 'EAI_ADDRFAMILY'
                case EAI_ADDRFAMILY:
                     ^

On FreeBSD EAI_ADDRFAMILY is obsoleted.  Here's the relevant excerpt
from netdb.h on FreeBSD 13.

-----------------------------------------------------------------
  /*
   * Error return codes from gai_strerror(3), see RFC 3493.
   */
  #if 0
  /* Obsoleted on RFC 2553bis-02 */
  #define EAI_ADDRFAMILY   1      /* address family for hostname not supported */
  #endif
-----------------------------------------------------------------

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Uri Simchoni <uri@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Sep 16 19:42:19 UTC 2021 on sn-devel-184
2021-09-16 19:42:19 +00:00
..
tests selftest: add a unit test for tsocket_address_inet_from_strings 2021-09-13 21:39:36 +00:00
doxy.config
tsocket_bsd.c lib/tsocket: Fix build on Freebsd 2021-09-16 19:42:19 +00:00
tsocket_guide.txt tsocket: Fix a few typos 2021-01-14 13:29:35 +00:00
tsocket_helpers.c lib/tsocket: Free subreq as soon as possible 2021-07-08 10:21:25 +00:00
tsocket_internal.h
tsocket.c tsocket: Fix some unreachable code 2010-07-11 18:14:33 +02:00
tsocket.h Rename macro argument s_addr due to it already being defined 2020-02-28 03:08:45 +00:00
wscript_build selftest: add a unit test for tsocket_address_inet_from_strings 2021-09-13 21:39:36 +00:00