bug-gnulib
[Top][All Lists]
Advanced

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

linkat fix for MSVC 9


From: Bruno Haible
Subject: linkat fix for MSVC 9
Date: Sun, 25 Sep 2011 13:26:00 +0200
User-agent: KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; )

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

        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

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