Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Feb 2003 08:20:04 -0800 (PST)
From:      Stefan Farfeleder <stefan@fafoe.dyndns.org>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/48331: Update port: foobillard -> 2.4
Message-ID:  <200302161620.h1GGK49w056330@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/48331; it has been noted by GNATS.

From: Stefan Farfeleder <stefan@fafoe.dyndns.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/48331: Update port: foobillard -> 2.4
Date: Sun, 16 Feb 2003 17:12:06 +0100

 --J/dobhs11T7y2rNN
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 I missed the reference to __BIG_ENDIAN in billard3d.c, this caused the
 sound data to not be byte swapped.  Here is a revised patch for the
 file.
 
 --J/dobhs11T7y2rNN
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="patch-billard3d.c"
 
 --- src/billard3d.c.orig	Sat Jan 11 02:04:01 2003
 +++ src/billard3d.c	Sun Feb 16 16:39:59 2003
 @@ -24,7 +24,7 @@
  #include <string.h>
  #include <math.h>
  #include <unistd.h>
 -#include <endian.h>
 +#include <machine/endian.h>
  
  #ifndef USE_SDL
  #include <GL/glut.h>
 @@ -4094,7 +4094,7 @@
         fread( &ball_ball_snd.data[SOUND_NULLOFFS*2], 1, ball_ball_snd.len-SOUND_NULLOFFS*2*2 , f );
         fclose(f);
  
 -#if __BYTE_ORDER == __BIG_ENDIAN
 +#if _BYTE_ORDER == _BIG_ENDIAN
         {
            char *snd=ball_ball_snd.data;
            for(i=0;i<ball_ball_snd.len;i+=2)
 
 --J/dobhs11T7y2rNN--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




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