summaryrefslogtreecommitdiffstats
path: root/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/compat.h b/compat.h
index 736a14fc..df8aa562 100644
--- a/compat.h
+++ b/compat.h
@@ -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