Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Mar 2005 11:03:24 +0200
From:      Andriy Gapon <avg@icyb.net.ua>
To:        freebsd-sparc64@freebsd.org
Subject:   Re: udfclient-0.3.3_1 failed on sparc64: bswap.h
Message-ID:  <4243D3DC.3030508@icyb.net.ua>
In-Reply-To: <20050324200719.GD60666@dragon.NUXI.org>
References:  <42415375.4080107@icyb.net.ua> <4241A28C.4060309@icyb.net.ua> <20050324200719.GD60666@dragon.NUXI.org>

next in thread | previous in thread | raw e-mail | index | archive | help
on 24.03.2005 22:07 David O'Brien said the following:
> On Wed, Mar 23, 2005 at 07:08:28PM +0200, Andriy Gapon wrote:
>>+++ ./work/UDFclient.0.3.3/udf_bswap.h	Wed Mar 23 19:00:10 2005
>>@@ -52,8 +52,33 @@
>> /* rest only relevant for big endian machines */
>> #if (BYTE_ORDER == BIG_ENDIAN)
>> 
>>+#if !defined(__FreeBSD__)
>> #include <machine/bswap.h>
>> #include <sys/bswap.h>
>>+#else
>>+#if !defined(bswap16)
>>+/* this version of FreeBSD does not provide bswap*() functions */
> 
> 
> I don't see why this is necessary -- 4.x does not run on our big endian
> platforms, and 5.x does have bswap*.
> 

David,

the first part of the patch is needed because we do not have bswap.h
header file (bswap*() are in endian.h). The second part was just in case
(I have not followed any non-x86 developments). It can be omitted then.
Thank you for your knowledge.

-- 
Andriy Gapon



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