summaryrefslogtreecommitdiffstats
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c22
1 files changed, 17 insertions, 5 deletions
diff --git a/proc.c b/proc.c
index 9412cec0..958a9483 100644
--- a/proc.c
+++ b/proc.c
@@ -17,19 +17,20 @@
*/
#include <sys/types.h>
-#include <sys/queue.h>
#include <sys/socket.h>
#include <sys/uio.h>
#include <sys/utsname.h>
#include <errno.h>
-#include <event.h>
-#include <imsg.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#if defined(HAVE_NCURSES_H)
+#include <ncurses.h>
+#endif
+
#include "tmux.h"
struct tmuxproc {
@@ -190,8 +191,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", u.sysname, u.release, u.version);
+ log_debug("using libevent %s (%s)"
+#ifdef HAVE_UTF8PROC
+ "; utf8proc %s"
+#endif
+#ifdef NCURSES_VERSION
+ "; ncurses " NCURSES_VERSION
+#endif
+ , event_get_version(), event_get_method()
+#ifdef HAVE_UTF8PROC
+ , utf8proc_version ()
+#endif
+ );
tp = xcalloc(1, sizeof *tp);
tp->name = xstrdup(name);