From: Quanah Gibson-Mount Date: Tue, 15 Jun 2021 18:20:27 +0000 (+0000) Subject: ITS#8695 - Update Windows to use Sleep instead of deprecated _sleep X-Git-Tag: OPENLDAP_REL_ENG_2_6_0~175 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44e1c6535e4180cdfdc9addfb31a22b30f6f6322;p=thirdparty%2Fopenldap.git ITS#8695 - Update Windows to use Sleep instead of deprecated _sleep --- diff --git a/include/ac/unistd.h b/include/ac/unistd.h index cb5fe65aad..7f14115f62 100644 --- a/include/ac/unistd.h +++ b/include/ac/unistd.h @@ -61,12 +61,12 @@ LDAP_LUTIL_F(char*)(lutil_getpass) LDAP_P((const char *getpass)); /* * Windows: although sleep() will be resolved by both MSVC and Mingw GCC * linkers, the function is not declared in header files. This is - * because Windows' version of the function is called _sleep(), and it - * is declared in stdlib.h + * because Windows' version of the function is called Sleep(), and it + * is declared in windows.h */ #ifdef _WIN32 -#define sleep _sleep +#define sleep(x) Sleep((x) * 1000) #endif #endif /* _AC_UNISTD_H */