Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Mar 2005 12:07:19 -0800
From:      "David O'Brien" <obrien@freebsd.org>
To:        Andriy Gapon <avg@icyb.net.ua>
Cc:        freebsd-sparc64@freebsd.org
Subject:   Re: udfclient-0.3.3_1 failed on sparc64: bswap.h
Message-ID:  <20050324200719.GD60666@dragon.NUXI.org>
In-Reply-To: <4241A28C.4060309@icyb.net.ua>
References:  <42415375.4080107@icyb.net.ua> <4241A28C.4060309@icyb.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 23, 2005 at 07:08:28PM +0200, Andriy Gapon wrote:
> Volunteers with big endian hardware, could you please test the attached
> patch to sysutils/udfclient port? At least that it compiles, it is only
> a few .c files.
..
> +++ ./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  (obrien@FreeBSD.org)



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