On MSVC 9, a testdir for module 'stat' does not build: source='stat.c' object='stat.obj' libtool=no \ DEPDIR=.deps depmode=none /bin/sh ../build-aux/depcomp \ /home/bruno/msvc/compile cl -nologo -DHAVE_CONFIG_H -I. -I.. -DGNULIB_STRICT_CHECKING=1 -D_WIN32_WINNT=_WIN32_WINNT_WINXP -I/usr/local/msvc/include -MD -c `cygpath -w 'stat.c'` stat.c c:\cygwin\home\bruno\multibuild-2062\msvc9\testdir1\gllib\pathmax.h(42) : fatal error C1083: include file cannot be opened: "unistd.h": No such file or directory make[4]: *** [stat.obj] Error 2
This fixes it: 2012-04-14 Bruno Haible <br...@clisp.org> pathmax: Fix compilation error on MSVC 9. * modules/pathmax (Depends-on): Add unistd. --- modules/pathmax.orig Sat Apr 14 21:35:26 2012 +++ modules/pathmax Sat Apr 14 21:34:37 2012 @@ -6,6 +6,7 @@ m4/pathmax.m4 Depends-on: +unistd configure.ac: gl_PATHMAX