aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mls
diff options
context:
space:
mode:
authorchinsan <chinsan@FreeBSD.org>2007-08-26 03:37:34 +0800
committerchinsan <chinsan@FreeBSD.org>2007-08-26 03:37:34 +0800
commit0068f6d956c2654e6cde7c545742f4ce21a8542b (patch)
treebf55d014939b474aae091eadd72293d07d954e23 /mail/mls
parent994db52a1bac6f03ef908819ab57490de11be61f (diff)
downloadfreebsd-ports-gnome-0068f6d956c2654e6cde7c545742f4ce21a8542b.tar.gz
freebsd-ports-gnome-0068f6d956c2654e6cde7c545742f4ce21a8542b.tar.zst
freebsd-ports-gnome-0068f6d956c2654e6cde7c545742f4ce21a8542b.zip
- Unbreak on HEAD (gcc 4.2)
PR: ports/115796 Submitted by: Hung-Yi Chen Approved by: maintainer
Diffstat (limited to 'mail/mls')
-rw-r--r--mail/mls/files/patch-mls.h12
-rw-r--r--mail/mls/files/patch-mls_text.c12
-rw-r--r--mail/mls/files/patch-mls_text.h11
3 files changed, 35 insertions, 0 deletions
diff --git a/mail/mls/files/patch-mls.h b/mail/mls/files/patch-mls.h
new file mode 100644
index 000000000000..1a0883f8dc8d
--- /dev/null
+++ b/mail/mls/files/patch-mls.h
@@ -0,0 +1,12 @@
+--- mls.h.orig 2007-08-26 03:26:30.000000000 +0800
++++ mls.h 2007-08-26 03:27:11.000000000 +0800
+@@ -75,6 +75,9 @@
+ #define EXIT_NOMEM 4
+ #define EXIT_REGEX 5
+
++// because we must specify it when 2dimensional array is passed to function
++#define SNUMB_LEN 4
++
+ /* *** structures for BEST messages *** */
+ typedef struct bestQUOTE* nQptr;
+ struct bestQUOTE {
diff --git a/mail/mls/files/patch-mls_text.c b/mail/mls/files/patch-mls_text.c
new file mode 100644
index 000000000000..20a5fd18403e
--- /dev/null
+++ b/mail/mls/files/patch-mls_text.c
@@ -0,0 +1,12 @@
+--- mls_text.c.orig 2007-08-26 03:28:10.000000000 +0800
++++ mls_text.c 2007-08-26 03:28:32.000000000 +0800
+@@ -22,9 +22,6 @@
+ #include "mls_lang.h"
+ #include "mls_stat.h"
+
+-// because we must specify it when 2dimensional array is passed to function
+-#define SNUMB_LEN 4
+-
+ extern int lang;
+ extern int graph;
+ extern int onlytitle;
diff --git a/mail/mls/files/patch-mls_text.h b/mail/mls/files/patch-mls_text.h
new file mode 100644
index 000000000000..d72686def995
--- /dev/null
+++ b/mail/mls/files/patch-mls_text.h
@@ -0,0 +1,11 @@
+--- mls_text.h.orig 2007-08-26 03:29:23.000000000 +0800
++++ mls_text.h 2007-08-26 03:30:12.000000000 +0800
+@@ -30,7 +30,7 @@
+ void PrintTopQ(nTptr, int);
+ void PrintTopHtml(nTptr, int);
+ void PrintGraph(long[], int, int);
+-void PrintGraphHtml(long[], long[][], int, char *);
++void PrintGraphHtml(long[], long[][SNUMB_LEN], int, char *);
+
+ void PrintStatText(int, char *);
+ void PrintStatHtml(int, char *, short);