AIX has already has a function called msleep(). Bugzilla #1098.
[tprouty/samba.git] / source3 / lib / util_sock.c
index 782f5f3f7310aa41dbac2badfacf159bbe55c771..a275ddabb9af6406faa802d1fc95ef3e4155005e 100644 (file)
@@ -740,7 +740,7 @@ int open_socket_out(int type, struct in_addr *addr, int port ,int timeout)
        /* Some systems return EAGAIN when they mean EINPROGRESS */
        if (ret < 0 && (errno == EINPROGRESS || errno == EALREADY ||
                        errno == EAGAIN) && (connect_loop < timeout) ) {
-               msleep(connect_loop);
+               smb_msleep(connect_loop);
                connect_loop += increment;
                if (increment < 250) {
                        /* After 8 rounds we end up at a max of 255 msec */