Date: Wed, 22 May 2002 12:03:35 -0400 (EDT) From: Andrew Gallatin <gallatin@cs.duke.edu> To: Will Andrews <will@csociety.org> Cc: portmgr@FreeBSD.ORG, re@FreeBSD.ORG, alpha@FreeBSD.ORG Subject: Re: Alpha package building status Message-ID: <15595.49495.889584.825785@moe.cs.duke.edu> In-Reply-To: <20020522143405.GN53809@squall.waterspout.com> References: <1F095B0753FCD411857700010333058A04EEC8BF@waexch1.qgraph.com> <15595.40622.377080.973573@moe.cs.duke.edu> <20020522143405.GN53809@squall.waterspout.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Will Andrews writes: > On Wed, May 22, 2002 at 09:35:42AM -0400, Andrew Gallatin wrote: > > Speaking of ports.. I've got a patch which I think will get > > kdemultimedia3 building... > > Where? I want to review/approve. :) OK. Here it is. On 4.x only, there are only inline byte swap routines for x86. On alpha, they're called htons and htonl. On 5.x, this is standardized across all platforms, so this fix is only for < 5.0 Cheers, Drew Index: files/patch-kmidi-config.h =================================================================== RCS file: /home/ncvs/ports/audio/kdemultimedia3/files/patch-kmidi-config.h,v retrieving revision 1.1 diff -u -r1.1 patch-kmidi-config.h --- files/patch-kmidi-config.h 29 Apr 2002 07:53:39 -0000 1.1 +++ files/patch-kmidi-config.h 22 May 2002 14:37:44 -0000 @@ -1,8 +1,16 @@ ---- ./kmidi/config.h.old Sun Apr 28 23:33:03 2002 -+++ ./kmidi/config.h Sun Apr 28 23:33:55 2002 -@@ -264,8 +264,8 @@ +--- kmidi/config.h.orig Sun Oct 21 20:07:36 2001 ++++ kmidi/config.h Wed May 22 10:37:04 2002 +@@ -261,11 +261,16 @@ + /* And a better idea would be to attempt the various asm + optimizations ourselves IMO, but hey, this is free */ + #if __FreeBSD_version <= 500000 ++#if defined (__i386__) #define XCHG_SHORT(x) __byte_swap_word(x) #define XCHG_LONG(x) __byte_swap_long(x) ++#else ++ #define XCHG_SHORT(x) htons(x) ++ #define XCHG_LONG(x) htonl(x) ++#endif #else - #define XCHG_SHORT(x) __uint8_swap_uint16(x) - #define XCHG_LONG(x) __uint8_swap_uint32(x) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15595.49495.889584.825785>