Subject: Error in clnp.h.
To: None <netbsd-bugs@sun-lamp.cs.Berkeley.EDU>
From: Jan-Oliver Neumann <jan@encap.Hanse.DE>
List: netbsd-bugs
Date: 04/10/1994 23:28:20
(Sorry, no sendbug available at the moment).
There's an error letting the netiso stuff think the machine is a
big endian one if 'vax' isn't defined.
This is the code:
-----------------------------------8<-----------------8<-----------------
/*-
* Copyright (c) 1991 The Regents of the University of California.
* All rights reserved.
[...]
/*
* ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
*/
#ifndef BYTE_ORDER
/*
* Definitions for byte order,
* according to byte significance from low address to high.
*/
#define LITTLE_ENDIAN 1234 /* least-significant byte first (vax) */
#define BIG_ENDIAN 4321 /* most-significant byte first (IBM, net) */
#define PDP_ENDIAN 3412 /* LSB first in word, MSW first in long (pdp) */
#ifdef vax
#define BYTE_ORDER LITTLE_ENDIAN
#else
#define BYTE_ORDER BIG_ENDIAN /* mc68000, tahoe, most others */
#endif
#endif BYTE_ORDER
[...]
clnp.h should just include endian.h and that dangerous definitions should
be deleted from clnp.h.
Jan-Oliver
------------------------------------------------------------------------------