Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Feb 2009 23:43:36 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r188353 - head/sys/mips/mips
Message-ID:  <200902082343.n18Nha37038365@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902082343.n18Nha37038365>