PERFORCE change 104126 for review
John Birrell
jb at FreeBSD.org
Tue Aug 15 21:30:48 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=104126
Change 104126 by jb at jb_freebsd2 on 2006/08/15 21:28:18
This file may have started out automatically generated, but we
customise it to suit all FreeBSD arches.
Use the system headers to determine if big endian.
It would be nice if this library could handle both endians
and variable sizes.
Affected files ...
.. //depot/projects/dtrace/src/gnu/lib/libdwarf/config.h#6 edit
Differences ...
==== //depot/projects/dtrace/src/gnu/lib/libdwarf/config.h#6 (text+ko) ====
@@ -1,5 +1,7 @@
-/* config.h. Generated by configure. */
-/* config.h.in. Generated from configure.in by autoheader. */
+/*
+ * $FreeBSD$
+ */
+#include <sys/endian.h>
/* Define to 1 if you have the <alloca.h> header file. */
/* #undef HAVE_ALLOCA_H */
@@ -24,14 +26,10 @@
#define HAVE_INTTYPES_H 1
/* Define to 1 if you have the <libelf.h> header file. */
-#ifdef __i386__
#define HAVE_LIBELF_H 1
-#endif
/* Define to 1 if you have the <libelf/libelf.h> header file. */
-#ifdef __sparc64__
-#define HAVE_LIBELF_LIBELF_H 1
-#endif
+/* #undef HAVE_LIBELF_LIBELF_H */
/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1
@@ -105,6 +103,6 @@
/* Define to 1 if your processor stores words with the most significant byte
first (like Motorola and SPARC, unlike Intel and VAX). */
-#ifdef __sparc64__
+#if _BYTE_ORDER == _BIG_ENDIAN
#define WORDS_BIGENDIAN 1
#endif
More information about the p4-projects
mailing list