Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 2002 13:15:18 +0400 (MSD)
From:      Maxim Maximov <mcsi@agava.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/43761: fix build of emulators/adamem
Message-ID:  <200210070915.g979FHmq038744@ultra.domain>

next in thread | raw e-mail | index | archive | help

>Number:         43761
>Category:       ports
>Synopsis:       fix build of emulators/adamem
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 07 02:20:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Maxim Maximov
>Release:        FreeBSD 4.7-RC i386
>Organization:
>Environment:
System: FreeBSD ultra.domain 4.7-RC FreeBSD 4.7-RC #9: Fri Oct 4 12:38:44 MSD 2002 mcsi@ultra.domain:/usr/obj/usr/src/sys/ULTRA i386


	
>Description:
fix build for emulators/adamem
	
>How-To-Repeat:
	
>Fix:

--- DSP.c.orig	Mon Oct  7 13:10:24 2002
+++ DSP.c	Mon Oct  7 13:10:53 2002
@@ -15,7 +15,7 @@
 
 #include <stdio.h>
 #include <string.h>
-#include <values.h>
+#include <limits.h>
 
 static int initialised=0;
 static int stereo=0;
@@ -103,7 +103,7 @@
  if (freq>MAXFREQ)
   freq=MAXFREQ;
 
- if (freq>(MAXINT/441)) freq=MAXINT/441;        /* avoid overflows */
+ if (freq>(INT_MAX/441)) freq=INT_MAX/441;        /* avoid overflows */
  if (channel==3)
  {
   for (i=0;i<5;++i)
	


>Release-Note:
>Audit-Trail:
>Unformatted:

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




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