]> git.donarmstrong.com Git - mothur.git/blobdiff - pintail.cpp
added mothurgetpid function. fixed bug with align.seqs related to g++ 4.8 change...
[mothur.git] / pintail.cpp
index af64c25ce290a808a5edc8295645bc16bf277856..9f46cf97a5611a7f5667ac9f6c46551629e7ca02 100644 (file)
@@ -74,7 +74,7 @@ int Pintail::doPrep() {
        #ifdef USE_MPI
                //do nothing
        #else
-               #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)
+               #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux) || (__linux__) || (__unix__) || (__unix)
                        //find breakup of templatefile for quantiles
                        if (processors == 1) {   templateLines.push_back(new linePair(0, templateSeqs.size()));  }
                        else { 
@@ -529,7 +529,7 @@ Sequence* Pintail::findPairs(Sequence* q) {
 //**************************************************************************************************
 void Pintail::createProcessesQuan() {
        try {
-#if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)
+#if defined (__APPLE__) || (__MACH__) || (linux) || (__linux) || (__linux__) || (__unix__) || (__unix)
                int process = 1;
                vector<int> processIDS;
                                
@@ -546,7 +546,7 @@ void Pintail::createProcessesQuan() {
                                
                                //write out data to file so parent can read it
                                ofstream out;
-                               string s = toString(getpid()) + ".temp";
+                               string s = m->mothurGetpid(process) + ".temp";
                                m->openOutputFile(s, out);
                                                                
                                //output observed distances