changeset 108:2f41b9635c34

arogue5: use configure's checks to find term.h. This should make the build process work on OS X.
author John "Elwin" Edwards
date Sat, 07 Sep 2013 09:43:06 -0400
parents f2951c4e28d9
children ec9db3bb6b0b
files arogue5/mdport.c
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/arogue5/mdport.c	Sat Sep 07 08:08:00 2013 -0400
+++ b/arogue5/mdport.c	Sat Sep 07 09:43:06 2013 -0400
@@ -29,6 +29,10 @@
     SUCH DAMAGE.
 */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #if defined(_WIN32)
 #include <Windows.h>
 #include <Lmcons.h>
@@ -55,10 +59,10 @@
 
 #if defined(__INTERIX) || defined(__MSYS__)
 #include <term.h>
+#elif defined(HAVE_NCURSES_TERM_H)
+#include <ncurses/term.h>
 #else
-#ifdef NCURSES_VERSION
-#include <ncurses/term.h>
-#endif
+#include <term.h>
 #endif
 
 #include <stdio.h>