Author: gonzo
Date: Sun Feb  8 23:43:36 2009
New Revision: 188353
URL: http://svn.freebsd.org/changeset/base/188353

Log:
  - Fix in_cksum for big-endian MIPS: use correct compile-time check.

Modified:
  head/sys/mips/mips/in_cksum.c

Modified: head/sys/mips/mips/in_cksum.c
==============================================================================
--- head/sys/mips/mips/in_cksum.c       Sun Feb  8 23:39:30 2009        
(r188352)
+++ head/sys/mips/mips/in_cksum.c       Sun Feb  8 23:43:36 2009        
(r188353)
@@ -69,7 +69,7 @@ __FBSDID("$FreeBSD$");
     }
 
 static const u_int32_t in_masks[] = {
-#ifndef _MISEB
+#if _BYTE_ORDER == _LITTLE_ENDIAN
        /*0 bytes*/ /*1 byte*/  /*2 bytes*/ /*3 bytes*/
        0x00000000, 0x000000FF, 0x0000FFFF, 0x00FFFFFF, /* offset 0 */
        0x00000000, 0x0000FF00, 0x00FFFF00, 0xFFFFFF00, /* offset 1 */
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to