Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 May 2002 11:05:45 -0500
From:      "Schroeder, Aaron" <Aaron.Schroeder@qg.com>
To:        'Andrew Gallatin' <gallatin@cs.duke.edu>, Will Andrews <will@csociety.org>
Cc:        portmgr@FreeBSD.ORG, re@FreeBSD.ORG, alpha@FreeBSD.ORG
Subject:   RE: Alpha package building status
Message-ID:  <1F095B0753FCD411857700010333058A04EEC8CA@waexch1.qgraph.com>

next in thread | raw e-mail | index | archive | help
So I will have to upgrade to 5.0 CURRENT for this to work? Oh boy..

-----Original Message-----
From: Andrew Gallatin [mailto:gallatin@cs.duke.edu]
Sent: Wednesday, May 22, 2002 11:04 AM
To: Will Andrews
Cc: portmgr@FreeBSD.ORG; re@FreeBSD.ORG; alpha@FreeBSD.ORG
Subject: Re: Alpha package building status



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

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?1F095B0753FCD411857700010333058A04EEC8CA>