Print this page
2169 arpa/nameser_compat.h: wrong macros
Reviewed by: Dan McDonald <danmcd@omniti.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/head/arpa/nameser_compat.h
          +++ new/usr/src/head/arpa/nameser_compat.h
↓ open down ↓ 57 lines elided ↑ open up ↑
  58   58   */
  59   59  
  60   60  /*
  61   61   *      from nameser.h  8.1 (Berkeley) 6/2/93
  62   62   *      $Id: nameser_compat.h,v 8.15 2002/07/17 07:01:02 marka Exp $
  63   63   */
  64   64  
  65   65  #ifndef _ARPA_NAMESER_COMPAT_H
  66   66  #define _ARPA_NAMESER_COMPAT_H
  67   67  
  68      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  69      -
  70   68  #ifdef  __cplusplus
  71   69  extern "C" {
  72   70  #endif
  73   71  
  74   72  #define __BIND          19950621        /* (DEAD) interface version stamp. */
  75   73  
  76   74  #ifndef BYTE_ORDER
  77   75  #if (BSD >= 199103)
  78   76  #include <machine/endian.h>
  79   77  #else
↓ open down ↓ 23 lines elided ↑ open up ↑
 103  101      defined(BIT_ZERO_ON_LEFT) || defined(m68k) || \
 104  102          (defined(__Lynx__) && \
 105  103          (defined(__68k__) || defined(__sparc__) || defined(__powerpc__)))
 106  104  #define BYTE_ORDER      BIG_ENDIAN
 107  105  #endif
 108  106  #endif /* linux */
 109  107  #endif /* BSD */
 110  108  #endif /* BYTE_ORDER */
 111  109  
 112  110  #if !defined(BYTE_ORDER) || \
 113      -        (BYTE_ORDER != BIG_ENDIAN && BYTE_ORDER != LITTLE_ENDIAN && \
 114      -    BYTE_ORDER != PDP_ENDIAN)
 115      -        /*
 116      -         * you must determine what the correct bit order is for
 117      -         * your compiler - the next line is an intentional error
 118      -         * which will force your compiles to bomb until you fix
 119      -         * the above macros.
 120      -         */
 121      -        error "Undefined or invalid BYTE_ORDER";
      111 +        ((BYTE_ORDER != BIG_ENDIAN) && (BYTE_ORDER != LITTLE_ENDIAN) && \
      112 +        (BYTE_ORDER != PDP_ENDIAN))
      113 +/*
      114 + * you must determine what the correct bit order is for
      115 + * your compiler - the next line is an intentional error
      116 + * which will force your compiles to bomb until you fix
      117 + * the above macros.
      118 + */
      119 +#error "Undefined or invalid BYTE_ORDER";
 122  120  #endif
 123  121  
 124  122  /*
 125  123   * Structure for query header.  The order of the fields is machine- and
 126  124   * compiler-dependent, depending on the byte/bit order and the layout
 127  125   * of bit fields.  We use bit fields only in int variables, as this
 128  126   * is all ANSI requires.  This requires a somewhat confusing rearrangement.
 129  127   */
 130  128  
 131  129  typedef struct {
↓ open down ↓ 142 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX