From a6ff80cdc1b16f32716bc54c052e8fa8b149b4f9 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Tue, 20 Oct 2020 14:47:20 +1100 Subject: [PATCH] s3:ctdbd_conn: Fix the build on FreeBSD Commit 6b9564c1084d8dc7319857fac984808571ef0eb9 broke the build on FreeBSD: [2321/3909] Compiling source3/smbd/process.c ../../source3/smbd/process.c:2797:10: error: use of undeclared identifier 'EREMOTEIO' return EREMOTEIO; ^ ../../source3/smbd/process.c:2833:14: error: use of undeclared identifier 'EREMOTEIO' if (ret == EREMOTEIO) { ^ 2 errors generated. Use one of the POSIX error codes instead. Signed-off-by: Martin Schwenke Reviewed-by: David Disseldorp Autobuild-User(master): Martin Schwenke Autobuild-Date(master): Tue Oct 20 07:22:08 UTC 2020 on sn-devel-184 --- source3/smbd/process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 4cf53720067..9e861554fa7 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -2794,7 +2794,7 @@ static int match_cluster_movable_ip(uint32_t total_ip_count, }; if (is_movable_ip && sockaddr_equal(&pub_ip.u.sa, &srv_ip.u.sa)) { - return EREMOTEIO; + return EADDRNOTAVAIL; } return 0; @@ -2830,7 +2830,7 @@ static NTSTATUS smbd_register_ips(struct smbXsrv_connection *xconn, ret = ctdbd_public_ip_foreach(cconn, match_cluster_movable_ip, srv); - if (ret == EREMOTEIO) { + if (ret == EADDRNOTAVAIL) { xconn->has_cluster_movable_ip = true; DBG_DEBUG("cluster movable IP on %s\n", smbXsrv_connection_dbg(xconn)); -- 2.47.3