summaryrefslogtreecommitdiff
path: root/sci-biology/lagan/files/lagan-2.0-conflicting-getline.patch
blob: 075753a924c9fddc9bf6033c64486e4d2bc97f62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Author: Andreas Tille <tille@debian.org>
LastChanged: Fri, 15 Nov 2013 10:31:20 +0100
Description: Prevent conflicting getline by simply renaming it

--- a/src/anchors.c
+++ b/src/anchors.c
@@ -225,7 +225,7 @@ char* rolltonum(char* str) {
   return &str[i];
 }
 
-int getline(FILE* infile, hll* tt) {
+int anchors_getline(FILE* infile, hll* tt) {
   char temp[1024];
   char* help;
   int z, h;
@@ -248,7 +248,7 @@ hll* parseCHAOS(FILE* infile, int* totnu
   *totnum = 0;
   while(!feof(infile)) {
     tt = (hll*) malloc(sizeof(hll));
-    while (!feof(infile) && !getline(infile, tt))
+    while (!feof(infile) && !anchors_getline(infile, tt))
       ;
     if (feof(infile)) break;
     if (gapfreechunks) {