diff options
author | Marcus Brinkmann <[email protected]> | 2008-03-21 14:18:22 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2008-03-21 14:18:22 +0000 |
commit | 3de69e5fece18cf9d0b417e34c600d0261bc4728 (patch) | |
tree | a8b6332b3e6e4ffcaa5f3c9212a10b78fef1e046 /src/assuan-io-pth.c | |
parent | 2008-03-21 Marcus Brinkmann <[email protected]> (diff) | |
download | libassuan-3de69e5fece18cf9d0b417e34c600d0261bc4728.tar.gz libassuan-3de69e5fece18cf9d0b417e34c600d0261bc4728.zip |
2008-03-21 Marcus Brinkmann <[email protected]>
* assuan-defs.h (_assuan_usleep): New prototype.
* assuan-io.c (_assuan_usleep): New function.
* assuan-io-pth.c (_assuan_usleep): New function.
* mkerrors: Do not incude <windows.h>, but assuan-defs.h.
(_assuan_error_is_eagain): Call _assuan_usleep.
Diffstat (limited to 'src/assuan-io-pth.c')
-rw-r--r-- | src/assuan-io-pth.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/assuan-io-pth.c b/src/assuan-io-pth.c index 5b60cc7..6064ec4 100644 --- a/src/assuan-io-pth.c +++ b/src/assuan-io-pth.c @@ -1,5 +1,5 @@ /* assuan-io-pth.c - Pth version of assua-io.c. - * Copyright (C) 2002, 2004, 2006, 2007 Free Software Foundation, Inc. + * Copyright (C) 2002, 2004, 2006, 2007, 2008 Free Software Foundation, Inc. * * This file is part of Assuan. * @@ -182,3 +182,10 @@ _assuan_simple_recvmsg (assuan_context_t ctx, struct msghdr *msg) return ret; #endif } + + +void +_assuan_usleep (unsigned int usec) +{ + pth_usleep (usec); +} |