From c135899083bc50e439c063d93f7ae3b3f04923a5 Mon Sep 17 00:00:00 2001 From: "Cheng H. Lee" Date: Wed, 1 Jul 2015 07:15:19 -0500 Subject: [PATCH] Added missing "#include " in several souces Needed to pick up declarations for usleep(3), optind(3), and getopt(3). This should fix upstream (aquaskyline/SOAPdenovo2) issue #3 (make error on Ubuntu 14.04 LTS). --- sparsePregraph/build_preArc.cpp | 2 ++ sparsePregraph/multi_threads.cpp | 2 ++ sparsePregraph/pregraph_sparse.cpp | 2 ++ standardPregraph/orderContig.c | 4 ++-- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sparsePregraph/build_preArc.cpp b/sparsePregraph/build_preArc.cpp index 7cf5c25..ad4f2ca 100644 --- a/sparsePregraph/build_preArc.cpp +++ b/sparsePregraph/build_preArc.cpp @@ -27,6 +27,8 @@ #include "global.h" #include "multi_threads.h" +#include + #include #include "bam.h" #include "faidx.h" diff --git a/sparsePregraph/multi_threads.cpp b/sparsePregraph/multi_threads.cpp index 6808834..5aa755d 100644 --- a/sparsePregraph/multi_threads.cpp +++ b/sparsePregraph/multi_threads.cpp @@ -25,6 +25,8 @@ #include "build_graph.h" #include "stdinc.h" +#include + #include "build_preArc.h" void creatThrds ( pthread_t * threads, PARAMETER * paras ) diff --git a/sparsePregraph/pregraph_sparse.cpp b/sparsePregraph/pregraph_sparse.cpp index 53b687e..cd422f3 100644 --- a/sparsePregraph/pregraph_sparse.cpp +++ b/sparsePregraph/pregraph_sparse.cpp @@ -24,6 +24,8 @@ #include "stdinc.h" #include "core.h" +#include + #include "multi_threads.h" #include "build_graph.h" #include "build_edge.h" diff --git a/standardPregraph/orderContig.c b/standardPregraph/orderContig.c index 933058b..b79ae61 100644 --- a/standardPregraph/orderContig.c +++ b/standardPregraph/orderContig.c @@ -3202,7 +3202,7 @@ void ScafStat ( int len_cut, char * graphfile ) Singleton_Seq[Scaffold_Number] = 0; Nucleotide = fgetc ( fp ); - while ( Nucleotide != EOF ) + while ( Nucleotide != (char) EOF ) /* Bug Fix */ { if ( Nucleotide == '>' ) { @@ -3529,7 +3529,7 @@ void ScafStat ( int len_cut, char * graphfile ) Singleton_Seq[Scaffold_Number] = 0; Nucleotide = fgetc ( fp2 ); - while ( Nucleotide != EOF ) + while ( Nucleotide != (char) EOF ) /* Bug Fix */ { if ( Nucleotide == '>' ) {