From 7ce77bbbcaa765edd27db353925778aae57b8d16 Mon Sep 17 00:00:00 2001 From: dwarning Date: Tue, 4 Aug 2009 19:27:28 +0000 Subject: [PATCH] looking for unistd.h & usage --- configure.in | 2 +- src/include/ngspice.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 77f7b1ece..ff96f549e 100644 --- a/configure.in +++ b/configure.in @@ -574,7 +574,7 @@ AC_TYPE_SIGNAL dnl Check for a few libraries and headers: AC_HEADER_DIRENT -AC_CHECK_HEADERS(ctype.h pwd.h fcntl.h sys/ioctl.h stropts.h) +AC_CHECK_HEADERS(unistd.h ctype.h pwd.h fcntl.h sys/ioctl.h stropts.h) AC_HEADER_SYS_WAIT AC_HEADER_STAT diff --git a/src/include/ngspice.h b/src/include/ngspice.h index 876d75bd9..6e874468e 100644 --- a/src/include/ngspice.h +++ b/src/include/ngspice.h @@ -127,6 +127,7 @@ struct timeb timebegin; #endif #ifdef HAVE_UNISTD_H +#include #include #endif