|  | @@ -15,6 +15,7 @@
 | 
											
												
													
														|  |  #include <errno.h> // errno
 |  |  #include <errno.h> // errno
 | 
											
												
													
														|  |  #include <stdio.h> // SEEK_SET
 |  |  #include <stdio.h> // SEEK_SET
 | 
											
												
													
														|  |  #include <fcntl.h>
 |  |  #include <fcntl.h>
 | 
											
												
													
														|  | 
 |  | +#include <unistd.h>
 | 
											
												
													
														|  |  #include "cmSystemTools.h"
 |  |  #include "cmSystemTools.h"
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  cmFileLock::cmFileLock(): File(-1)
 |  |  cmFileLock::cmFileLock(): File(-1)
 | 
											
										
											
												
													
														|  | @@ -31,6 +32,9 @@ cmFileLockResult cmFileLock::Release()
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |    this->Filename = "";
 |  |    this->Filename = "";
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +  ::close(this->File);
 | 
											
												
													
														|  | 
 |  | +  this->File = -1;
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |    if (lockResult == 0)
 |  |    if (lockResult == 0)
 | 
											
												
													
														|  |      {
 |  |      {
 | 
											
												
													
														|  |      return cmFileLockResult::MakeOk();
 |  |      return cmFileLockResult::MakeOk();
 |