Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tools/compat If HAVE_SYS_ENDIAN_H, pull in <sys/endian.h>. ...



details:   https://anonhg.NetBSD.org/src/rev/a43f9a444dbb
branches:  trunk
changeset: 549987:a43f9a444dbb
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun Jul 27 07:56:37 2003 +0000

description:
If HAVE_SYS_ENDIAN_H, pull in <sys/endian.h>.  Fixes build.sh on FreeBSD 5.1.
Fix from Grant Beattie <grant@>

diffstat:

 tools/compat/compat_defs.h |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r c3c8f0db72f8 -r a43f9a444dbb tools/compat/compat_defs.h
--- a/tools/compat/compat_defs.h        Sun Jul 27 07:53:26 2003 +0000
+++ b/tools/compat/compat_defs.h        Sun Jul 27 07:56:37 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_defs.h,v 1.28 2003/07/18 13:45:15 fredb Exp $   */
+/*     $NetBSD: compat_defs.h,v 1.29 2003/07/27 07:56:37 lukem Exp $   */
 
 #ifndef        __NETBSD_COMPAT_DEFS_H__
 #define        __NETBSD_COMPAT_DEFS_H__
@@ -447,7 +447,9 @@
 
 /* <sys/endian.h> */
 
-#ifndef HAVE_SYS_ENDIAN_H
+#ifdef HAVE_SYS_ENDIAN_H
+#include <sys/endian.h>
+#else
 #if WORDS_BIGENDIAN
 #define htobe16(x)     (x)
 #define htobe32(x)     (x)



Home | Main Index | Thread Index | Old Index