mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
[version] Show version of libevent
This commit is contained in:
parent
571d275759
commit
33a9fea02a
@ -74,6 +74,20 @@ do { \
|
|||||||
#define FD_SETSIZE 1024
|
#define FD_SETSIZE 1024
|
||||||
#endif
|
#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
|
#define DEBUG_CALLS
|
||||||
*/
|
*/
|
||||||
|
@ -52,6 +52,8 @@ int can_write(int fd);
|
|||||||
|
|
||||||
void terminate_select(void);
|
void terminate_select(void);
|
||||||
|
|
||||||
|
const char *get_libevent_version(void);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
#include "intl/libintl.h"
|
#include "intl/libintl.h"
|
||||||
#include "main/module.h"
|
#include "main/module.h"
|
||||||
|
#include "main/select.h"
|
||||||
#include "main/version.h"
|
#include "main/version.h"
|
||||||
#include "terminal/terminal.h"
|
#include "terminal/terminal.h"
|
||||||
#include "util/error.h"
|
#include "util/error.h"
|
||||||
@ -172,10 +173,10 @@ get_dyn_full_version(struct terminal *term, int more)
|
|||||||
comma, _("Combining characters", term),
|
comma, _("Combining characters", term),
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_LIBEV
|
#ifdef CONFIG_LIBEV
|
||||||
comma, (event_enabled ? _("libev", term) : _("libev (disabled)", term)),
|
comma, (event_enabled ? _("libev", term) : _("libev (disabled)", term)), "(", get_libevent_version(), ")",
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_LIBEVENT
|
#ifdef CONFIG_LIBEVENT
|
||||||
comma, (event_enabled ? _("libevent", term) : _("libevent (disabled)", term)),
|
comma, (event_enabled ? _("libevent", term) : _("libevent (disabled)", term)), "(", get_libevent_version(), ")",
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_TERMINFO
|
#ifdef CONFIG_TERMINFO
|
||||||
comma, (get_cmd_opt_bool("terminfo") ? _("terminfo", term) : _("terminfo (disabled)", term)),
|
comma, (get_cmd_opt_bool("terminfo") ? _("terminfo", term) : _("terminfo (disabled)", term)),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user