Log ncurses and utf8proc versions.

pull/2270/head
Nicholas Marriott 2020-05-22 17:14:35 +01:00
parent d48f0e114e
commit 87a59efc94
3 changed files with 19 additions and 7 deletions

View File

@ -27,6 +27,12 @@
#include <termios.h>
#include <wchar.h>
#if defined(HAVE_CURSES_H)
#include <curses.h>
#elif defined(HAVE_NCURSES_H)
#include <ncurses.h>
#endif
#ifndef __GNUC__
#define __attribute__(a)
#endif

15
proc.c
View File

@ -183,8 +183,19 @@ 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)", u.sysname, u.release,
u.version, event_get_version(), event_get_method());
log_debug("on %s %s %s; 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 ()
#endif
);
tp = xcalloc(1, sizeof *tp);
tp->name = xstrdup(name);

View File

@ -18,11 +18,6 @@
#include <sys/types.h>
#if defined(HAVE_CURSES_H)
#include <curses.h>
#elif defined(HAVE_NCURSES_H)
#include <ncurses.h>
#endif
#include <fnmatch.h>
#include <stdlib.h>
#include <string.h>