Page MenuHome GnuPG

libassuan implicit declaration of function 'nanosleep'
Closed, ResolvedPublic

Description

  • assuan-io.c:234: warning: implicit declaration of function 'nanosleep'

Details

Version
1.0.5

Related Objects

Event Timeline

Even worse: nanosleep is an optional Posix function and thus we need to use a
configure test as weel.

In GPGME, I made some changes to libassuan to avoid the need for sleeping in all
asynchronous cases (these have yet to be backported into libassuan proper). The
only place where it is left is process_request, which is supposed to be
synchronous. But I wonder if process_request can't do with just setting the
socket to blocking (if it isn't already).

It seems that thus we can do away with the sleep. It's not kosher anyway.

There is a configure check now. I am still not happy that we sleep at all, but
thats a bigger issue.

marcus removed a project: In Progress.