Commit 54e6989f authored by Shayan Doust's avatar Shayan Doust
Browse files

Modify source with patch to attempt to fix compilation issue with temp arrays

parent eda3d5cb
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
Index: simka/src/SimkaPotara.hpp
===================================================================
--- simka.orig/src/SimkaPotara.hpp	2019-09-16 14:57:11.000000000 +0100
+++ simka/src/SimkaPotara.hpp	2019-09-16 15:10:46.652115586 +0100
@@ -902,7 +902,8 @@
 					}
 					else{
 						//sleep(1);
-						nanosleep((const struct timespec[]){{0, 100000000L}}, NULL);
+						struct timespec ts = {0, 100000000L};
+						nanosleep(&ts, NULL);
 					}
 
 					if(i >= this->_bankNames.size()) break;
Index: simka/src/minikc/SimkaCountProcess.cpp
===================================================================
--- simka.orig/src/minikc/SimkaCountProcess.cpp	2019-09-13 09:30:25.536451003 +0100
+++ simka/src/minikc/SimkaCountProcess.cpp	2019-09-16 15:11:31.264505521 +0100
@@ -22,7 +22,8 @@
 	int nbTries = 0;
 	while(ret != 0){
 		ret = system(command.c_str());
-		nanosleep((const struct timespec[]){{0, 10000000L}}, NULL);
+		struct timespec ts = {0, 100000000L};
+		nanosleep(&ts, NULL);
 		if(nbTries > 3) exit(1);
 		nbTries += 1;
 	}
+1 −0
Original line number Diff line number Diff line
fix_temp_arrays.patch
detailed_errors.patch
fix_binary_path.patch
fix_test_path.patch