udfclient-0.3.3_1 failed on sparc64: bswap.h

Andriy Gapon avg at icyb.net.ua
Fri Mar 25 01:03:28 PST 2005


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


More information about the freebsd-sparc64 mailing list