udfclient-0.3.3_1 failed on sparc64: bswap.h

David O'Brien obrien at freebsd.org
Thu Mar 24 12:07:23 PST 2005


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 at FreeBSD.org)


More information about the freebsd-sparc64 mailing list