From 44e1c6535e4180cdfdc9addfb31a22b30f6f6322 Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Tue, 15 Jun 2021 18:20:27 +0000 Subject: [PATCH] ITS#8695 - Update Windows to use Sleep instead of deprecated _sleep --- include/ac/unistd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 */ -- 2.47.3