aboutsummaryrefslogtreecommitdiffstats
path: root/games/deal
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2006-12-15 15:51:57 +0800
committermiwi <miwi@FreeBSD.org>2006-12-15 15:51:57 +0800
commite3115514fa0f7a36449f1dffc9b178e3befabedf (patch)
treeedb2f2dd230fa9d6e978ee6010944b88f1deb594 /games/deal
parent009ecbad2a74d14840e1c81ad603ad65c0e9de9d (diff)
downloadfreebsd-ports-gnome-e3115514fa0f7a36449f1dffc9b178e3befabedf.tar.gz
freebsd-ports-gnome-e3115514fa0f7a36449f1dffc9b178e3befabedf.tar.zst
freebsd-ports-gnome-e3115514fa0f7a36449f1dffc9b178e3befabedf.zip
- Fix gcc 4.X build
PR: ports/106740 Submitted by: trasz
Diffstat (limited to 'games/deal')
-rw-r--r--games/deal/files/patch-deal.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/games/deal/files/patch-deal.c b/games/deal/files/patch-deal.c
new file mode 100644
index 000000000000..1f2d87063354
--- /dev/null
+++ b/games/deal/files/patch-deal.c
@@ -0,0 +1,26 @@
+--- deal.c.orig Fri Sep 27 00:31:22 1996
++++ deal.c Fri Dec 15 01:00:03 2006
+@@ -35,6 +35,7 @@
+ * rounds to zero.
+ */
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <math.h>
+ #include <signal.h>
+
+@@ -49,6 +50,7 @@
+ static int verbose = FALSE;
+
+ static double log_a_choose_b(int a, int b);
++static double hyper_prob(int, int, int, int);
+
+ static void hypercatch(int sig)
+ {
+@@ -80,7 +82,6 @@
+ {
+ extern char *optarg; /* set by getopt */
+ extern int optind; /* set by getopt */
+- static double hyper_prob();
+
+ int status, special, total, columns, i, j;
+ int base = BASE_DEFAULT;