r17586: merge lib/netif into lib/socket and use -lnsl -lsocket on the
[sfrench/samba-autobuild/.git] / source4 / nsswitch / wb_common.c
index 97f8232524a10d0aef70eee5f43bdf78f8c40651..98eeb279f84f2c9c2784a089fa8760a94863320b 100644 (file)
@@ -230,7 +230,8 @@ static int winbind_named_pipe_sock(const char *dir)
                struct timeval tv;
                fd_set w_fds;
                int ret;
-               int connect_errno = 0, errnosize;
+               int connect_errno = 0;
+               socklen_t errnosize;
 
                if (wait_time >= CONNECT_TIMEOUT)
                        goto error_out;