Check for ncurses.h header (in addition to curses.h).

Had a problem (on Solaris) where both libcurses and libncurses were
around but the curses.h header (from libcurses) was installed.
This commit is contained in:
rocky
2005-03-17 07:36:09 +00:00
parent 20e610a017
commit bd9336310a
2 changed files with 9 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: cdda-player.c,v 1.15 2005/03/16 02:19:20 rocky Exp $
$Id: cdda-player.c,v 1.16 2005/03/17 07:36:10 rocky Exp $
Copyright (C) 2005 Rocky Bernstein <rocky@panix.com>
@@ -57,7 +57,12 @@
#include <errno.h>
#endif
#ifdef HAVE_CURSES_H
#include <curses.h>
#elif HAVE_NCURSES_H
#include <ncurses.h>
# error "You need <curses.h> or <ncurses.h to build cdda-player"
#endif
#include <cdio/cdio.h>
#include <cdio/mmc.h>