Compile sleep replacement only when HAVE_SLEEP is not defined

https://github.com/Hamlib/Hamlib/issues/336
pull/345/head
Michael Black W9MDB 2020-07-04 11:33:11 -05:00
rodzic d361a111e2
commit 8e79561b73
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -66,6 +66,7 @@ int hl_usleep(rig_useconds_t usec)
}
#ifdef HAVE_NANOSLEEP
#ifndef HAVE_SLEEP
/**
* \brief sleep
* \param secs is seconds to sleep
@ -83,6 +84,8 @@ unsigned int sleep(unsigned int secs)
return 0;
}
#endif
#endif
#if 0