kopia lustrzana https://github.com/Hamlib/Hamlib
Enclose sleep replacement in HAVE_NANOSLEEP
rodzic
325d26c1d1
commit
f2f56558e7
|
@ -31,7 +31,7 @@ AC_CHECK_HEADERS([winioctl.h winbase.h], [], [], [
|
||||||
#endif
|
#endif
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_CHECK_FUNCS([getopt getopt_long usleep sleep gettimeofday])
|
AC_CHECK_FUNCS([getopt getopt_long usleep sleep nanosleep gettimeofday])
|
||||||
AC_CHECK_TYPES([struct timezone, ssize_t],[],[],[
|
AC_CHECK_TYPES([struct timezone, ssize_t],[],[],[
|
||||||
#if HAVE_SYS_TYPES_H
|
#if HAVE_SYS_TYPES_H
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
* \param same as man page for each
|
* \param same as man page for each
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
#ifdef HAVE_NANOSLEEP
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
@ -70,3 +71,4 @@ int usleep(useconds_t usec)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif // HAVE_NANOSLEEP
|
||||||
|
|
Ładowanie…
Reference in New Issue