From 3de69e5fece18cf9d0b417e34c600d0261bc4728 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Fri, 21 Mar 2008 14:18:22 +0000 Subject: 2008-03-21 Marcus Brinkmann * 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 , but assuan-defs.h. (_assuan_error_is_eagain): Call _assuan_usleep. --- src/assuan-io-pth.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/assuan-io-pth.c') 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); +} -- cgit v1.2.3