Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Dec 2002 04:17:53 +0800 (CST)
From:      Kuang-che Wu <kcwu@kcwu.homeip.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/46475: Fix build on -current for math/gri
Message-ID:  <200212222017.gBMKHrLX043432@kcwu.dyndns.org>

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

>Number:         46475
>Category:       ports
>Synopsis:       Fix build on -current for math/gri
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 22 12:20:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Kuang-che Wu
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD m722 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Tue Nov 26 18:00:18 CST 2002 root@m722:/usr/obj/usr/src/sys/M722 i386


	
>Description:
	Fix build on -current for math/gri
>How-To-Repeat:
	
>Fix:
diff -urN gri/files/patch-ac gri.new/files/patch-ac
--- gri/files/patch-ac	Fri Oct 25 16:19:13 2002
+++ gri.new/files/patch-ac	Mon Dec 23 04:12:21 2002
@@ -1,5 +1,5 @@
---- gr.hh.orig	Fri Oct 25 01:19:27 2002
-+++ gr.hh	Fri Oct 25 01:20:38 2002
+--- gr.hh.orig	Mon Dec 23 04:06:38 2002
++++ gr.hh	Mon Dec 23 04:08:51 2002
 @@ -28,7 +28,7 @@
  #if STDC_HEADERS
  #include        <stdlib.h>
@@ -9,3 +9,12 @@
  #include        <malloc.h>
  #endif				// not MSDOS
  #endif				// Doesn't have stdlib
+@@ -345,7 +345,7 @@
+ #endif
+ 
+ // Time type (time_t, int, or long) varies per machine (ug).
+-#if defined(VMS) || defined(MSDOS) || defined(IS_DEC_ALPHA) || defined(AIX)
++#if defined(VMS) || defined(MSDOS) || defined(IS_DEC_ALPHA) || defined(AIX) || defined(__FreeBSD__)
+ #define SECOND_TYPE time_t
+ #else
+ #if defined(__DECCXX)
diff -urN gri/files/patch-rpncalc.cc gri.new/files/patch-rpncalc.cc
--- gri/files/patch-rpncalc.cc	Thu Jan  1 08:00:00 1970
+++ gri.new/files/patch-rpncalc.cc	Mon Dec 23 04:12:52 2002
@@ -0,0 +1,11 @@
+--- rpncalc.cc.orig	Mon Dec 23 04:10:17 2002
++++ rpncalc.cc	Mon Dec 23 04:10:33 2002
+@@ -1801,7 +1801,7 @@
+ 
+ // Used by rpn.cc also, in case of stack overflow
+ bool
+-print_rpn_stack(const char *msg="")
++print_rpn_stack(const char *msg)
+ {
+ 	int             i;
+ 	int             stack_len = rS.size();

	


>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?200212222017.gBMKHrLX043432>