Include <cstring> to ensure that strcpy(), strlen(), and memset() are declared.
An "using namespace std" was added locally in those functions that refer to names from <cstring>. That is not pretty, but it's a very portable solution, because strcpy() and friends will be found in both the 'std' and in the global namespace.
This commit is contained in:
		
							parent
							
								
									560ab22f7d
								
							
						
					
					
						commit
						a17071fef1
					
				
					 3 changed files with 6 additions and 0 deletions
				
			
		|  | @ -7,6 +7,7 @@ | |||
| #include "globals.hh" | ||||
| 
 | ||||
| #include <iostream> | ||||
| #include <cstring> | ||||
| #include <unistd.h> | ||||
| #include <signal.h> | ||||
| #include <sys/types.h> | ||||
|  | @ -111,6 +112,7 @@ static bool isFarSideClosed(int socket) | |||
|    time and wouldn't have to worry about races. */ | ||||
| static void sigPollHandler(int sigNo) | ||||
| { | ||||
|     using namespace std; | ||||
|     try { | ||||
|         /* Check that the far side actually closed.  We're still
 | ||||
|            getting spurious signals every once in a while.  I.e., | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue