1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[version] Show version of libevent

This commit is contained in:
Witold Filipczyk 2021-12-28 17:49:15 +01:00
parent 571d275759
commit 33a9fea02a
3 changed files with 19 additions and 2 deletions

View File

@ -74,6 +74,20 @@ do { \
#define FD_SETSIZE 1024
#endif
#ifdef USE_LIBEVENT
const char *
get_libevent_version(void)
{
return event_get_version();
}
#else
const char *
get_libevent_version(void)
{
return "";
}
#endif
/*
#define DEBUG_CALLS
*/

View File

@ -52,6 +52,8 @@ int can_write(int fd);
void terminate_select(void);
const char *get_libevent_version(void);
#ifdef __cplusplus
}
#endif

View File

@ -31,6 +31,7 @@
#include "intl/libintl.h"
#include "main/module.h"
#include "main/select.h"
#include "main/version.h"
#include "terminal/terminal.h"
#include "util/error.h"
@ -172,10 +173,10 @@ get_dyn_full_version(struct terminal *term, int more)
comma, _("Combining characters", term),
#endif
#ifdef CONFIG_LIBEV
comma, (event_enabled ? _("libev", term) : _("libev (disabled)", term)),
comma, (event_enabled ? _("libev", term) : _("libev (disabled)", term)), "(", get_libevent_version(), ")",
#endif
#ifdef CONFIG_LIBEVENT
comma, (event_enabled ? _("libevent", term) : _("libevent (disabled)", term)),
comma, (event_enabled ? _("libevent", term) : _("libevent (disabled)", term)), "(", get_libevent_version(), ")",
#endif
#ifdef CONFIG_TERMINFO
comma, (get_cmd_opt_bool("terminfo") ? _("terminfo", term) : _("terminfo (disabled)", term)),