ports/76635: games/KnightCap: fix compilation on FreeBSD >= 5.x

Johan van Selst johans at stack.nl
Mon Jan 24 22:30:29 UTC 2005


>Number:         76635
>Category:       ports
>Synopsis:       games/KnightCap: fix compilation on FreeBSD >= 5.x
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 24 22:30:28 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Johan van Selst
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD mud.stack.nl 5.3-STABLE FreeBSD 5.3-STABLE #3: Thu Jan 13 13:11:19 CET 2005 root at mud.stack.nl:/usr/local/spare1/TEMP/obj/usr/src/sys/mud i386


	
>Description:
	
	Patch is quite trivial: remove two conflicting functions,
	which are never used anyway.

	I'm not sure what this program is supposed to do exactly though;
	so just sending it off in the spirit of "it compiles: ship it!"

>How-To-Repeat:
	
>Fix:

	

Add this patch as files/patch-knightcap.h:


--- knightcap.h	Mon Jan 24 22:20:22 2005
+++ knightcap.h	Mon Jan 24 22:17:19 2005
@@ -632,16 +632,6 @@
 	return i1 > i2? i1 : i2;
 }
 
-static inline float fmin(float i1, float i2)
-{
-	return i1 > i2? i2 : i1;
-}
-
-static inline float fmax(float i1, float i2)
-{
-	return i1 > i2? i1 : i2;
-}
-
 static inline etype emin(etype i1, etype i2)
 {
 	return i1 > i2? i2 : i1;
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list