summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/ots/files/ots-0.4.2-gcc4.diff')
-rw-r--r--app-text/ots/files/ots-0.4.2-gcc4.diff21
1 files changed, 21 insertions, 0 deletions
diff --git a/app-text/ots/files/ots-0.4.2-gcc4.diff b/app-text/ots/files/ots-0.4.2-gcc4.diff
new file mode 100644
index 000000000000..7ec0f46a8fed
--- /dev/null
+++ b/app-text/ots/files/ots-0.4.2-gcc4.diff
@@ -0,0 +1,21 @@
+--- ots-0.4.2.orig/src/article.c 2005-09-28 22:11:41.000000000 -0300
++++ ots-0.4.2/src/article.c 2005-09-28 22:18:24.000000000 -0300
+@@ -35,7 +35,7 @@
+ ots_new_sentence (void)
+ {
+ OtsSentence *aLine = g_new0 (OtsSentence, 1);
+- (GList *) aLine->words = NULL;
++ aLine->words = (GList *)NULL;
+ aLine->wc = 0;
+ aLine->selected = 0;
+ aLine->score = 0;
+--- ots-0.4.2.orig/src/grader-tf.c 2005-09-28 22:11:41.000000000 -0300
++++ ots-0.4.2/src/grader-tf.c 2005-09-28 22:21:48.000000000 -0300
+@@ -22,6 +22,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include "libots.h"
++#include <math.h>
+
+ /*Grader - using the Term frequency algorithm. Will give each line a score*/
+