Commit c2e5ccb1 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Look for ncurses/curses.h before curses.h

Solaris puts the ncurses header in /usr/include/ncurses, and we need
that to compile with -Werror.

Fixes: #889
parent 5ba20ed3
......@@ -34,7 +34,11 @@
#include <sys/time.h>
#ifdef HAVE_NCURSES_CURSES_H
#include <ncurses/curses.h>
#elif HAVE_CURSES_H
#include <curses.h>
#endif
#include <errno.h>
#include <signal.h>
#include <stdio.h>
......
......@@ -87,6 +87,7 @@ AC_SUBST(CURSES_LIBS)
if test "$have_curses" = no; then
AC_MSG_WARN([curses not found; some tools will not be built])
fi
AC_CHECK_HEADERS([ncurses/curses.h curses.h])
AM_CONDITIONAL([HAVE_CURSES], [test x$have_curses = xyes])
save_LIBS="${LIBS}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment