From 3835000e9daae247cb71b625c5c2809cd9bcf21e Mon Sep 17 00:00:00 2001 From: axel Date: Fri, 28 Jul 2006 22:50:57 +1000 Subject: [PATCH] Include unistd.h and stropts.h in common.c to fix Solaris problems reported by Netocrat darcs-hash:20060728125057-ac50b-455d5a9a1671ad3bfee61a46266b420aff1adb49.gz --- common.c | 6 ++++++ configure.ac | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/common.c b/common.c index fb20c320f..97b9b7a65 100644 --- a/common.c +++ b/common.c @@ -7,6 +7,12 @@ parts of fish. #include "config.h" +#include + +#ifdef HAVE_STROPTS +#include +#endif + #include #include #include diff --git a/configure.ac b/configure.ac index a30142f4f..4553fe2d3 100644 --- a/configure.ac +++ b/configure.ac @@ -250,7 +250,7 @@ AC_SEARCH_LIBS( nanosleep, rt, , [AC_MSG_ERROR([Cannot find the rt library, need AC_SEARCH_LIBS( setupterm, [ncurses curses], , [AC_MSG_ERROR([Could not find a curses implementation, needed to build fish])] ) # Check for presense of various header files -AC_CHECK_HEADERS([getopt.h termio.h sys/resource.h term.h ncurses/term.h libintl.h ncurses.h curses.h]) +AC_CHECK_HEADERS([getopt.h termio.h sys/resource.h term.h ncurses/term.h libintl.h ncurses.h curses.h stropts.h]) AC_CHECK_HEADER([regex.h], [AC_DEFINE([HAVE_REGEX_H], [1], [Define to 1 if you have the header file.])],