Fix utf8proc version logging.

pull/2270/head
Nicholas Marriott 2020-05-22 17:20:35 +01:00
parent 87a59efc94
commit 6ae26a6b54
2 changed files with 6 additions and 2 deletions

View File

@ -33,6 +33,10 @@
#include <ncurses.h>
#endif
#ifdef HAVE_UTF8PROC
#include <utf8proc.h>
#endif
#ifndef __GNUC__
#define __attribute__(a)
#endif

4
proc.c
View File

@ -183,14 +183,14 @@ proc_start(const char *name)
log_debug("%s started (%ld): version %s, socket %s, protocol %d", name,
(long)getpid(), getversion(), socket_path, PROTOCOL_VERSION);
log_debug("on %s %s %s; libevent %s (%s)"
log_debug("on %s %s %s", u.sysname, u.release, u.version);
log_debug("using libevent %s (%s)"
#ifdef HAVE_UTF8PROC
"; utf8proc %s/%s"
#endif
#ifdef NCURSES_VERSION
"; ncurses " NCURSES_VERSION
#endif
, u.sysname, u.release, u.version
, event_get_version(), event_get_method()
#ifdef HAVE_UTF8PROC
, utf8proc_version (), utf8proc_unicode_version ()