diff options
author | Roland McGrath <roland@gnu.org> | 1992-11-18 18:55:44 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1992-11-18 18:55:44 +0000 |
commit | ce9cbffe99d7fc471b77823512f37a9b7ed8a5be (patch) | |
tree | c227d886951ce613afb74f74f8085548b8463786 /resolv | |
parent | 6a0ebb8fe52b1616833cebe4dc1390819850d766 (diff) |
Formerly ../inet/arpa/nameser.h.~2~
Diffstat (limited to 'resolv')
-rw-r--r-- | resolv/arpa/nameser.h | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/resolv/arpa/nameser.h b/resolv/arpa/nameser.h index 84ed990919..87ee0152b0 100644 --- a/resolv/arpa/nameser.h +++ b/resolv/arpa/nameser.h @@ -131,27 +131,9 @@ #define CONV_BADCKSUM -3 #define CONV_BADBUFLEN -4 -#ifndef BYTE_ORDER -#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) */ +/* Hacked for GNU: The BSD code has #ifdef's here to set BYTE_ORDER. */ +#include <endian.h> -#if defined(vax) || defined(ns32000) || defined(sun386) || defined(MIPSEL) || \ - defined(BIT_ZERO_ON_RIGHT) -#define BYTE_ORDER LITTLE_ENDIAN - -#endif -#if defined(sel) || defined(pyr) || defined(mc68000) || defined(sparc) || \ - defined(is68k) || defined(tahoe) || defined(ibm032) || defined(ibm370) || \ - defined(MIPSEB) || defined (BIT_ZERO_ON_LEFT) -#define BYTE_ORDER BIG_ENDIAN -#endif -#endif /* BYTE_ORDER */ - -#ifndef BYTE_ORDER - /* you must determine what the correct bit order is for your compiler */ - UNDEFINED_BIT_ORDER; -#endif /* * Structure for query header, the order of the fields is machine and * compiler dependent, in our case, the bits within a byte are assignd |