On MSVC 9, I get a compilation error in linkat.c, because <stdint.h> does not
exist.

Should that include be removed, or should a module dependency to 'stdint' be
added?

The #include <stdint.h> in this file was added on 2009-10-06, because of
SIZE_MAX. But that use of SIZE_MAX was subsequentlyr removed on 2009-10-07.
So the fix is this one:


2011-09-25  Bruno Haible  <[email protected]>

        linkat: Fix compilation on MSVC 9.
        * lib/linkat.c: Don't include <stdint.h>.

--- lib/linkat.c.orig   Sun Sep 25 13:21:37 2011
+++ lib/linkat.c        Sun Sep 25 13:16:05 2011
@@ -23,7 +23,6 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <limits.h>
-#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 #include <sys/stat.h>
-- 
In memoriam Safia Ahmed-jan <http://en.wikipedia.org/wiki/Safia_Ahmed-jan>

Reply via email to