Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Aug 2006 21:28:43 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 104126 for review
Message-ID:  <200608152128.k7FLShQX066575@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=104126

Change 104126 by jb@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608152128.k7FLShQX066575>