Browse Source

looking for unistd.h & usage

pre-master-46
dwarning 17 years ago
parent
commit
7ce77bbbca
  1. 2
      configure.in
  2. 1
      src/include/ngspice.h

2
configure.in

@ -574,7 +574,7 @@ AC_TYPE_SIGNAL
dnl Check for a few libraries and headers: dnl Check for a few libraries and headers:
AC_HEADER_DIRENT 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_SYS_WAIT
AC_HEADER_STAT AC_HEADER_STAT

1
src/include/ngspice.h

@ -127,6 +127,7 @@ struct timeb timebegin;
#endif #endif
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#endif #endif

Loading…
Cancel
Save