diff options
| author | Igor Pashev <pashev.igor@gmail.com> | 2016-03-09 20:08:52 -0500 |
|---|---|---|
| committer | Dan McDonald <danmcd@omniti.com> | 2016-03-10 15:02:56 -0500 |
| commit | 5566946ddee5d74cd7ce592465b954f7d90f62f7 (patch) | |
| tree | bc964a32b1a405d7b267f76baac9cc0c50d9e2ad | |
| parent | 573f02443902adab48a475194c301e0266998115 (diff) | |
| download | illumos-joyent-5566946ddee5d74cd7ce592465b954f7d90f62f7.tar.gz | |
2169 arpa/nameser_compat.h: wrong macros
Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Lauri Tirkkonen <lotheac@iki.fi>
Approved by: Garrett D'Amore <garrett@damore.org>
| -rw-r--r-- | usr/src/head/arpa/nameser_compat.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/usr/src/head/arpa/nameser_compat.h b/usr/src/head/arpa/nameser_compat.h index 7df7b90bb0..ae3a925fa5 100644 --- a/usr/src/head/arpa/nameser_compat.h +++ b/usr/src/head/arpa/nameser_compat.h @@ -65,8 +65,6 @@ #ifndef _ARPA_NAMESER_COMPAT_H #define _ARPA_NAMESER_COMPAT_H -#pragma ident "%Z%%M% %I% %E% SMI" - #ifdef __cplusplus extern "C" { #endif @@ -110,15 +108,15 @@ extern "C" { #endif /* BYTE_ORDER */ #if !defined(BYTE_ORDER) || \ - (BYTE_ORDER != BIG_ENDIAN && BYTE_ORDER != LITTLE_ENDIAN && \ - BYTE_ORDER != PDP_ENDIAN) - /* - * you must determine what the correct bit order is for - * your compiler - the next line is an intentional error - * which will force your compiles to bomb until you fix - * the above macros. - */ - error "Undefined or invalid BYTE_ORDER"; + ((BYTE_ORDER != BIG_ENDIAN) && (BYTE_ORDER != LITTLE_ENDIAN) && \ + (BYTE_ORDER != PDP_ENDIAN)) +/* + * you must determine what the correct bit order is for + * your compiler - the next line is an intentional error + * which will force your compiles to bomb until you fix + * the above macros. + */ +#error "Undefined or invalid BYTE_ORDER"; #endif /* |
