mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Feature: Report sizeof(fd_set) in version display
This commit is contained in:
parent
6baae8267e
commit
2357cca098
@ -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
|
||||
|
@ -62,6 +62,10 @@
|
||||
#include <pwd.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_SYS_SELECT_H
|
||||
#include <sys/select.h>
|
||||
#endif
|
||||
|
||||
#include <rhash.h>
|
||||
|
||||
#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: ");
|
||||
|
Loading…
Reference in New Issue
Block a user