lkml.org 
[lkml]   [2002]   [Jun]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: 2.5.21: fixdep starts spitting out 'unaligned traps'
Date
> Yeah, makes sense, that's a bug trap to test if we guessed endianness 
> right. Could you try to just comment out the call to traps() in main()?
>
> The rest of the code should be safe. If commenting out fixes the problem,
> could you try to replace
>
> - char *test = "CONF";
> + static char __attribute__((aligned(8))) test[] = "CONF";

This works:

#include <netinet/in.h>

if(htonl(999UL)==999UL){
// brain-dead byte order
}else{
// correct byte order
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:26    [from the cache]
©2003-2011 Jasper Spaans