From owner-freebsd-alpha Wed May 22 9: 3:51 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 1949737B403; Wed, 22 May 2002 09:03:43 -0700 (PDT) Received: from moe.cs.duke.edu (moe.cs.duke.edu [152.3.140.74]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id MAA20182; Wed, 22 May 2002 12:03:36 -0400 (EDT) Received: (gallatin@localhost) by moe.cs.duke.edu (8.8.5/8.6.9) id MAA17575; Wed, 22 May 2002 12:03:35 -0400 (EDT) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15595.49495.889584.825785@moe.cs.duke.edu> Date: Wed, 22 May 2002 12:03:35 -0400 (EDT) To: Will Andrews Cc: portmgr@FreeBSD.ORG, re@FreeBSD.ORG, alpha@FreeBSD.ORG Subject: Re: Alpha package building status 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> X-Mailer: VM 6.72 under 21.1 (patch 9) "Canyonlands" XEmacs Lucid Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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