Check location of term.h header (updated)

darcs-hash:20060119122207-ac50b-c573f54cbe13a1592a20342ee331159be0306913.gz
This commit is contained in:
axel 2006-01-19 22:22:07 +10:00
parent 3259da8f4a
commit 1e7dd4f928
12 changed files with 51 additions and 3 deletions

View file

@ -45,8 +45,11 @@ parts of fish.
#include <termio.h>
#endif
#if HAVE_TERM_H
#include <term.h>
#elif HAVE_NCURSES_TERM_H
#include <ncurses/term.h>
#endif
#include "util.h"
#include "wutil.h"

5
env.c
View file

@ -25,7 +25,12 @@
#include <termio.h>
#endif
#if HAVE_TERM_H
#include <term.h>
#elif HAVE_NCURSES_TERM_H
#include <ncurses/term.h>
#endif
#include <errno.h>
#include "util.h"

View file

@ -11,12 +11,19 @@
#include <pwd.h>
#include <errno.h>
#include <fcntl.h>
#if HAVE_NCURSES_H
#include <ncurses.h>
#else
#include <curses.h>
#endif
#if HAVE_TERM_H
#include <term.h>
#elif HAVE_NCURSES_TERM_H
#include <ncurses/term.h>
#endif
#include <signal.h>
#include "util.h"

View file

@ -27,7 +27,12 @@
#include <termio.h>
#endif
#if HAVE_TERM_H
#include <term.h>
#elif HAVE_NCURSES_TERM_H
#include <ncurses/term.h>
#endif
#include <signal.h>
#include "util.h"

View file

@ -32,7 +32,12 @@ implementation in fish is as of yet incomplete.
#include <termio.h>
#endif
#if HAVE_TERM_H
#include <term.h>
#elif HAVE_NCURSES_TERM_H
#include <ncurses/term.h>
#endif
#include <signal.h>
#include <dirent.h>
#include <wctype.h>

View file

@ -12,6 +12,7 @@ Implementation file for the low level input library
#include <unistd.h>
#include <wchar.h>
#include "util.h"
#include "common.h"
#include "wutil.h"

4
io.c
View file

@ -25,7 +25,11 @@ Utilities for io redirection.
#include <termio.h>
#endif
#if HAVE_TERM_H
#include <term.h>
#elif HAVE_NCURSES_TERM_H
#include <ncurses/term.h>
#endif
#include "util.h"
#include "wutil.h"

View file

@ -26,7 +26,12 @@
#include <termio.h>
#endif
#if HAVE_TERM_H
#include <term.h>
#elif HAVE_NCURSES_TERM_H
#include <ncurses/term.h>
#endif
#include <signal.h>
#include <fcntl.h>
#include <dirent.h>

4
proc.c
View file

@ -36,7 +36,11 @@ Some of the code in this file is based on code from the Glibc manual.
#include <termio.h>
#endif
#if HAVE_TERM_H
#include <term.h>
#elif HAVE_NCURSES_TERM_H
#include <ncurses/term.h>
#endif
#include "util.h"
#include "wutil.h"

View file

@ -45,7 +45,12 @@ commence.
#include <termio.h>
#endif
#if HAVE_TERM_H
#include <term.h>
#elif HAVE_NCURSES_TERM_H
#include <ncurses/term.h>
#endif
#include <signal.h>
#include <fcntl.h>
#include <dirent.h>

View file

@ -14,12 +14,16 @@
#include <curses.h>
#endif
#if HAVE_TERMIO_H
#include <termio.h>
#endif
#if HAVE_TERM_H
#include <term.h>
#elif HAVE_NCURSES_TERM_H
#include <ncurses/term.h>
#endif
#include <errno.h>
#ifdef HAVE_GETOPT_H