[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [PATCH 1.3.2] Fix compilation on MIPS (and possibly SPARC)
From: Atsushi Nemoto <anemo () mba ! ocn ! ne ! jp>
Date: 2007-01-27 16:24:49
Message-ID: 20070128.012449.25476484.anemo () mba ! ocn ! ne ! jp
[Download RAW message or body]
e2fsprogs/ext2fs/unix_io.c checks SIZEOF_LONG on MIPS and SPARC, but
it seems nobody defines such macro. It was not noticed before just
because we did not use -Wundef. We can use __WORDSIZE instead of
SIZEOF_LONG (at least on glibc and uClibc).
--- busybox-1.3.2.org/e2fsprogs/ext2fs/unix_io.c 2007-01-21 05:16:54.000000000 +0900
+++ busybox-1.3.2/e2fsprogs/ext2fs/unix_io.c 2007-01-28 01:11:34.483145453 +0900
@@ -419,7 +419,7 @@
#ifdef __linux__
#undef RLIM_INFINITY
-#if (defined(__alpha__) || ((defined(__sparc__) || defined(__mips__)) && (SIZEOF_LONG == 4)))
+#if (defined(__alpha__) || ((defined(__sparc__) || defined(__mips__)) && (__WORDSIZE == 32)))
#define RLIM_INFINITY ((unsigned long)(~0UL>>1))
#else
#define RLIM_INFINITY (~0UL)
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic