mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
When sql tries to acquire a lock that is already held, it sleeps for some microseconds using the usleep function and then try to acquire the lock again. However, if the HAVE_USLEEP macro is not defined then the sleep function will be used. This fix will define HAVE_USLEEP even when it is not already defined by the system. Although some Linux distros may not define HAVE_USLEEP, all supported versions provide usleep. If the system does not actually have a usleep function, then the compiler will flag the error.