AIX has already has a function called msleep(). Bugzilla #1098.
[tprouty/samba.git] / source3 / lib / smbldap.c
index 925bc1fbf0e0edcb08f13176395eeb0bf3719b51..bb16517149b82597ca49a79c47114909199bbf40 100644 (file)
@@ -888,7 +888,7 @@ int smbldap_retry_open(struct smbldap_state *ldap_state, int *attempts)
                 */
                DEBUG(3, ("Sleeping for %u milliseconds before reconnecting\n", 
                          sleep_time));
-               msleep(sleep_time);
+               smb_msleep(sleep_time);
        }
        (*attempts)++;
 
@@ -935,7 +935,7 @@ int smbldap_search(struct smbldap_state *ldap_state,
                if (sleep_time > 0) {
                        /* we wait for the LDAP replication */
                        DEBUG(5,("smbldap_search: waiting %d milliseconds for LDAP replication.\n",sleep_time));
-                       msleep(sleep_time);
+                       smb_msleep(sleep_time);
                        DEBUG(5,("smbldap_search: go on!\n"));
                        ZERO_STRUCT(ldap_state->last_rebind);
                }