Commit 44e1c653 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

ITS#8695 - Update Windows to use Sleep instead of deprecated _sleep

parent a2e9cb1a
Pipeline #2889 passed with stage
in 49 minutes and 6 seconds
......@@ -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 */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment