Including sys/select.h in the header file.

Brynet brynet at
Fri Aug 13 23:33:44 CEST 2010


In the case of !_WIN32 gcrypt.h decalres a few function prototypes with
the fd_set structure, POSIX mentions that the following header should be

On at least OpenBSD, this causes problems if a project includes gcrypt.h
without sys/select.h (..and some do).

"The <sys/select.h> header shall define the fd_set type as a structure."

Should this be fixed by libgcrypt or by projects including the gcrypt
header file?

Thanks, take care.

More information about the Gcrypt-devel mailing list