From ad491ceec6145b3781a05dc7b4a36052abeeb4b4 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 31 Oct 2016 12:20:33 +0100 Subject: common: New function gnupg_usleep. * configure.ac (HAVE_NANOSLEEP): Test for nanosleep. * common/sysutils.c: Always include time.h. (gnupg_usleep): New. -- This function has been compiled from nPth and Libassuan. Signed-off-by: Werner Koch --- common/sysutils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'common/sysutils.h') diff --git a/common/sysutils.h b/common/sysutils.h index 7105107d0..5467b4ce7 100644 --- a/common/sysutils.h +++ b/common/sysutils.h @@ -54,6 +54,7 @@ const unsigned char *get_session_marker (size_t *rlen); unsigned int get_uint_nonce (void); /*int check_permissions (const char *path,int extension,int checkonly);*/ void gnupg_sleep (unsigned int seconds); +void gnupg_usleep (unsigned int usecs); int translate_sys2libc_fd (gnupg_fd_t fd, int for_write); int translate_sys2libc_fd_int (int fd, int for_write); FILE *gnupg_tmpfile (void); -- cgit v1.2.3