diff options
Diffstat (limited to 'sci-biology/lagan/files/lagan-2.0-conflicting-getline.patch')
-rw-r--r-- | sci-biology/lagan/files/lagan-2.0-conflicting-getline.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sci-biology/lagan/files/lagan-2.0-conflicting-getline.patch b/sci-biology/lagan/files/lagan-2.0-conflicting-getline.patch new file mode 100644 index 000000000000..075753a924c9 --- /dev/null +++ b/sci-biology/lagan/files/lagan-2.0-conflicting-getline.patch @@ -0,0 +1,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) { |