bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pathmax on MSVC


From: Bruno Haible
Subject: pathmax on MSVC
Date: Sat, 14 Apr 2012 22:07:22 +0200
User-agent: KMail/4.7.4 (Linux/3.1.0-1.2-desktop; KDE/4.7.4; x86_64; ; )

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  <address@hidden>

        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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]