Subject: PR/36678 CVS commit: src/tools/compat
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: Alan Barrett <apb@netbsd.org>
List: netbsd-bugs
Date: 08/07/2007 08:25:02
The following reply was made to PR bin/36678; it has been noted by GNATS.
From: Alan Barrett <apb@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/36678 CVS commit: src/tools/compat
Date: Tue, 7 Aug 2007 08:22:04 +0000 (UTC)
Module Name: src
Committed By: apb
Date: Tue Aug 7 08:22:04 UTC 2007
Modified Files:
src/tools/compat: compat_defs.h configure.ac
Log Message:
Provide definitions for {be,le}{16,32,64}{enc,dec} if necessary.
This is adapted from the very detailed fix provided by
Giles Lean in PR bin/36678.
Only one simplified implementation is provided, instead of the
two implementations conditional on __GNUC_PREREQ__(2,95) that are
provided in NetBSD's <sys/endian.h>. The use of memcpy instead of
__builtin__memcpy, and the absence of __inline or __unused, should make
it independent of GCC.
To generate a diff of this commit:
cvs rdiff -r1.59 -r1.60 src/tools/compat/compat_defs.h
cvs rdiff -r1.62 -r1.63 src/tools/compat/configure.ac
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.