[openssl-dev] [openssl.org #4457] apps/apps.c and apps/ocsp.c needs <sys/select.h> for fd_set

noloader@gmail.com via RT rt at openssl.org
Sun Mar 20 12:50:21 UTC 2016

This is the old Fedora 1 machine again...

apps/apps.c and apps/ocsp.c failed to compile because fd_set was not
known to the compiler. fd_set is defined in <sys/select.h>.

Also see http://pubs.opengroup.org/onlinepubs/009696899/basedefs/sys/select.h.html.
According to the Open Group, timeval is also defined there.


$ grep -IR fd_set *
apps/apps.c:    fd_set asyncfds;
apps/ocsp.c:#  define _XOPEN_SOURCE_EXTENDED/* So fd_set and friends
get properly defined
apps/ocsp.c:    fd_set confds;
apps/s_apps.h: * VAX C does not defined fd_set and friends, but it's
actually quite simple
apps/s_apps.h:typedef fd_mask fd_set;
apps/s_client.c:    fd_set readfds, writefds;
apps/s_server.c:    fd_set readfds;
apps/s_server.c:    fd_set readfds;
apps/s_time.c:    fd_set readfds;
apps/speed.c:        fd_set waitfdset;
crypto/rand/rand_unix.c:#  define FD_SETSIZE (8*sizeof(fd_set))
crypto/rand/rand_unix.c:                fd_set fset;
doc/crypto/ASYNC_start_job.pod:     fd_set waitfdset;

Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4457
Please log in as guest with password guest if prompted

More information about the openssl-dev mailing list