diff options
Diffstat (limited to 'scd')
-rw-r--r-- | scd/ccid-driver.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/scd/ccid-driver.c b/scd/ccid-driver.c index 0ac5aaf90..60ac5766b 100644 --- a/scd/ccid-driver.c +++ b/scd/ccid-driver.c @@ -315,18 +315,8 @@ set_msg_len (unsigned char *msg, unsigned int length) static void my_sleep (int seconds) { -#ifdef HAVE_NPTH - /* With Pth we also call the standard sleep(0) so that the process - may give up its timeslot. */ - if (!seconds) - { -# ifdef HAVE_W32_SYSTEM - Sleep (0); -# else - sleep (0); -# endif - } - pth_sleep (seconds); +#ifdef USE_NPTH + npth_sleep (seconds); #else # ifdef HAVE_W32_SYSTEM Sleep (seconds*1000); |