summaryrefslogtreecommitdiffstats
path: root/tmux.c
diff options
context:
space:
mode:
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/tmux.c b/tmux.c
index 71cbccba..3a49c803 100644
--- a/tmux.c
+++ b/tmux.c
@@ -20,20 +20,16 @@
#include <sys/stat.h>
#include <sys/utsname.h>
-#include <err.h>
#include <errno.h>
-#include <event.h>
#include <fcntl.h>
#include <langinfo.h>
#include <locale.h>
-#include <paths.h>
#include <pwd.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
-#include <util.h>
#include "tmux.h"
@@ -266,8 +262,10 @@ sig2name(int signo)
{
static char s[11];
+#ifdef HAVE_SYS_SIGNAME
if (signo > 0 && signo < NSIG)
return (sys_signame[signo]);
+#endif
xsnprintf(s, sizeof s, "%d", signo);
return (s);
}
@@ -321,15 +319,7 @@ find_home(void)
const char *
getversion(void)
{
- static char *version;
- struct utsname u;
-
- if (version == NULL) {
- if (uname(&u) < 0)
- fatalx("uname failed");
- xasprintf(&version, "openbsd-%s", u.release);
- }
- return (version);
+ return TMUX_VERSION;
}
int
@@ -515,5 +505,5 @@ main(int argc, char **argv)
free(label);
/* Pass control to the client. */
- exit(client_main(event_init(), argc, argv, flags, feat));
+ exit(client_main(osdep_event_init(), argc, argv, flags, feat));
}