diff options
author | Francois Bertel <francois.bertel@kitware.com> | 2009-03-16 21:38:17 (GMT) |
---|---|---|
committer | Francois Bertel <francois.bertel@kitware.com> | 2009-03-16 21:38:17 (GMT) |
commit | 257937f2bd3b82267c3bc01dd08ebc4eb3959c22 (patch) | |
tree | 594849da1312ae50d7d13c7195179d6beffc61a9 /Source/kwsys/ProcessUNIX.c | |
parent | d0b32b42a16ce16d56eb1fd85a82314e700df810 (diff) | |
download | CMake-257937f2bd3b82267c3bc01dd08ebc4eb3959c22.zip CMake-257937f2bd3b82267c3bc01dd08ebc4eb3959c22.tar.gz CMake-257937f2bd3b82267c3bc01dd08ebc4eb3959c22.tar.bz2 |
COMP:Try to fix compile error with qnx gcc.
Diffstat (limited to 'Source/kwsys/ProcessUNIX.c')
-rw-r--r-- | Source/kwsys/ProcessUNIX.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/kwsys/ProcessUNIX.c b/Source/kwsys/ProcessUNIX.c index eabbb26..9cd8d7e 100644 --- a/Source/kwsys/ProcessUNIX.c +++ b/Source/kwsys/ProcessUNIX.c @@ -2137,10 +2137,11 @@ static void kwsysProcessChildErrorExit(int errorPipe) { /* Construct the error message. */ char buffer[KWSYSPE_PIPE_BUFFER_SIZE]; + kwsysProcess_ssize_t result; strncpy(buffer, strerror(errno), KWSYSPE_PIPE_BUFFER_SIZE); /* Report the error to the parent through the special pipe. */ - kwsysProcess_ssize_t result=write(errorPipe, buffer, strlen(buffer)); + result=write(errorPipe, buffer, strlen(buffer)); (void)result; /* Terminate without cleanup. */ |