[Avida-SVN] r2308 - in development/source: main targets/viewer-text

baerb at myxo.css.msu.edu baerb at myxo.css.msu.edu
Thu Feb 7 08:15:54 PST 2008


Author: baerb
Date: 2008-02-07 11:15:54 -0500 (Thu, 07 Feb 2008)
New Revision: 2308

Modified:
   development/source/main/cSpatialResCount.cc
   development/source/targets/viewer-text/cDriver_TextViewer.cc
Log:

Added #include <signal.h> to cDriver_TextViewer to allow the program to
compile on Intel Mac



Modified: development/source/main/cSpatialResCount.cc
===================================================================
--- development/source/main/cSpatialResCount.cc	2008-02-07 15:21:26 UTC (rev 2307)
+++ development/source/main/cSpatialResCount.cc	2008-02-07 16:15:54 UTC (rev 2308)
@@ -184,6 +184,7 @@
 
   if (inflowX2 < inflowX1) { inflowX2 += world_x; }
   if (inflowY2 < inflowY1) { inflowY2 += world_y; }
+
   if (outflowX1 < 0) { 
     outflowX1 = 0; 
   } else if (outflowX1 > world_x) { 

Modified: development/source/targets/viewer-text/cDriver_TextViewer.cc
===================================================================
--- development/source/targets/viewer-text/cDriver_TextViewer.cc	2008-02-07 15:21:26 UTC (rev 2307)
+++ development/source/targets/viewer-text/cDriver_TextViewer.cc	2008-02-07 16:15:54 UTC (rev 2308)
@@ -41,6 +41,7 @@
 #include "cTextWindow.h"
 
 #include <cstdlib>
+#include <signal.h>
 
 using namespace std;
 
@@ -311,7 +312,7 @@
     m_main_window.Redraw();
     break;
   case 26: // CTRL-Z
-    kill(getpid(), SIGTSTP);
+    kill(getpid(), SIGTSTP); 
     break;
   case ERR:
     break;




More information about the Avida-cvs mailing list