summaryrefslogtreecommitdiffstats
path: root/compat.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-08-20 05:34:58 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-08-20 05:34:58 +0000
commit09cc5302994a5f245dbbe5875e5e0670f9332a19 (patch)
tree4fbf7ec9502e6fa48a2fdb6f41f3777c50894d5b /compat.h
parent966818c23d0cf15d93ad3c50ebadfd6d346ef428 (diff)
Solaris and AIX have no ttydefaults.h.
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/compat.h b/compat.h
index 7f914b89..401b089a 100644
--- a/compat.h
+++ b/compat.h
@@ -1,4 +1,4 @@
-/* $Id: compat.h,v 1.11 2009-08-19 09:00:05 nicm Exp $ */
+/* $Id: compat.h,v 1.12 2009-08-20 05:34:58 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -80,6 +80,18 @@
#include "compat/vis.h"
#endif
+#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
+
#ifndef HAVE_IMSG
#include "compat/imsg.h"
#endif