Package: u-boot
Version: 2011.09-1
Severity: important
Tags: patch
User: debian-h...@lists.debian.org
Usertags: hurd

Hi,

currently[1], u-boot fails to build on GNU/Hurd.

The fix is to make use of glibc includes (patch tested also on
kfreebsd-i386).

[1] 
https://buildd.debian.org/status/fetch.php?pkg=u-boot&arch=hurd-i386&ver=2011.09-1&stamp=1317667741

Thanks,
-- 
Pino
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -15,7 +15,7 @@
     defined(__sun__)	 || \
     defined(__APPLE__)
 # include <inttypes.h>
-#elif defined(__linux__) || defined(__WIN32__) || defined(__MINGW32__)
+#elif defined(__linux__) || defined(__WIN32__) || defined(__MINGW32__) || defined(__GLIBC__)
 # include <stdint.h>
 #endif
 
@@ -41,7 +41,7 @@
 #define O_BINARY	0
 #endif
 
-#ifdef __linux__
+#if defined(__linux__) || defined(__GLIBC__)
 # include <endian.h>
 # include <byteswap.h>
 #elif defined(__MACH__) || defined(__FreeBSD__)

Reply via email to