Including sys/select.h in the header file.

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


Hi,

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
included.

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

http://www.opengroup.org/onlinepubs/009695399/basedefs/sys/select.h.html

"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.
-Bryan.



More information about the Gcrypt-devel mailing list