On Monday 17 August 2009 17:46:39 Karel Zak wrote: > On Mon, Aug 17, 2009 at 10:50:26PM +0200, Daniel Mierswa wrote: > > This function is marked obsolete in POSIX.1-2001 and removed in > > POSIX.1-2008. > > > > Replaced with nanosleep(). > > > > +++ b/include/usleep.h > > @@ -0,0 +1,18 @@ > > +#ifndef UTIL_LINUX_USLEEP_H > > +#define UTIL_LINUX_USLEEP_H > > + > > +#ifndef HAVE_USLEEP > > +/* > > + * This function is marked obsolete in POSIX.1-2001 and removed in > > + * POSIX.1-2008. It is replaced with nanosleep(). > > + */ > > +# define usleep(x) \ > > What about: > > static inline usleep(unsigned it usec) can easily conflict with C libraries' prototype and cause build failures -mike
Attachment:
signature.asc
Description: This is a digitally signed message part.