diff --git a/src/admin.c b/src/admin.c index ab0cd160..2de20caa 100644 --- a/src/admin.c +++ b/src/admin.c @@ -1862,6 +1862,7 @@ static void command_version (client_t *client, source_t *source, adm #ifdef HAVE_SYS_SELECT_H reportxml_helper_add_value_int(resource, "fd-set-size", FD_SETSIZE); + reportxml_helper_add_value_int(resource, "fd-set-object-size", sizeof(fd_set)); #endif #ifdef HAVE_GETHOSTNAME diff --git a/src/main.c b/src/main.c index 6e72d6a9..c1d1a412 100644 --- a/src/main.c +++ b/src/main.c @@ -62,6 +62,10 @@ #include #endif +#if HAVE_SYS_SELECT_H +#include +#endif + #include #include "main.h" @@ -236,7 +240,8 @@ static void show_version(bool full) printf("Address bits: %u\n", (unsigned int)sizeof(void*)*8); #ifdef HAVE_SYS_SELECT_H - printf("fd set size: %u\n", (unsigned int)FD_SETSIZE); + printf("fd set size: %u entries\n", (unsigned int)FD_SETSIZE); + printf("fd_set size: %u Bytes\n", (unsigned int)sizeof(fd_set)); #endif printf("Compile time flags: ");