I just had a quick look over this problem, and the fix proved
relatively simple, rather than polluting the vanilla include chain I
decided to fix it where the problem occurs.
--- reiserfsprogs-3.6.19/include/reiserfs_fs.h 2004-09-16
08:49:05.000000000 +0100
+++ reiserfsprogs-3.6.19-patched/include/reiserfs_fs.h 2006-11-05
11:11:37.919328259 +0000
@@ -38,7 +38,15 @@
# define extern_inline
#endif
-#include <asm/unaligned.h>
+#include <string.h>
+
+#define get_unaligned(ptr) \
+ ({ __typeof__(*(ptr)) __tmp; memcpy(&__tmp, (ptr), sizeof(*(ptr))); __tmp; })
+
+#define put_unaligned(val, ptr) \
+ ({ __typeof__(*(ptr)) __tmp = (val); \
+ memcpy((ptr), &__tmp, sizeof(*(ptr))); \
+ (void)0; })
#ifndef get_unaligned
#if defined(__ppc__) || defined(ppc) || defined(__ppc) || \
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page