summaryrefslogtreecommitdiffstats
path: root/cmd-new-session.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-08-26 09:10:47 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-08-26 09:10:47 +0000
commit1a5aba47c742844fc17526ac27d5a162250f7fec (patch)
tree572e25ce708ae4bc944207df35de7d7a7e7d1967 /cmd-new-session.c
parent6b4ed722b1d77342fd4faa0c33880ef1d1d2305f (diff)
ttydefchars is a fucking horlicks. Happily we only need it in one file, move it
in there to avoid multiple inclusion issues. Perhaps it would be better to pass NULL through to forkpty in the default case...
Diffstat (limited to 'cmd-new-session.c')
-rw-r--r--cmd-new-session.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c
index 30e6892a..ebe41533 100644
--- a/cmd-new-session.c
+++ b/cmd-new-session.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-new-session.c,v 1.61 2009-08-24 16:31:26 tcunha Exp $ */
+/* $Id: cmd-new-session.c,v 1.62 2009-08-26 09:10:47 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -24,6 +24,18 @@
#include "tmux.h"
+#ifdef HAVE_TTYDEFAULTS_H
+#ifdef HAVE_TTYDEFCHARS
+#define TTYDEFCHARS
+#endif
+#include <sys/ttydefaults.h>
+#else
+#ifndef OXTABS
+#define OXTABS 0
+#endif
+#include "compat/ttydefaults.h"
+#endif
+
/*
* Create a new session and attach to the current terminal unless -d is given.
*/