From de1eeb3896a7e3b6cc96c3f8f375e1cd7f4d3e77 Mon Sep 17 00:00:00 2001
From: Francois Bertel <francois.bertel@kitware.com>
Date: Mon, 16 Mar 2009 17:38:17 -0400
Subject: [PATCH] COMP:Try to fix compile error with qnx gcc.

---
 ProcessUNIX.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ProcessUNIX.c b/ProcessUNIX.c
index 19cbee8f..b8e4b75c 100644
--- a/ProcessUNIX.c
+++ b/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.  */
-- 
GitLab