changeset 15754:05bdc6eefa07

pipe2: Fix compilation on pre-C99 compilers. * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
author Bruno Haible <bruno@clisp.org>
date Fri, 23 Sep 2011 23:03:42 +0200
parents ebd508fbaab8
children 68596f3bad3e
files ChangeLog lib/pipe2.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-09-23  Bruno Haible  <bruno@clisp.org>
+
+	pipe2: Fix compilation on pre-C99 compilers.
+	* lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
+
 2011-09-23  Bruno Haible  <bruno@clisp.org>
 
 	New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
--- a/lib/pipe2.c
+++ b/lib/pipe2.c
@@ -95,7 +95,9 @@
         goto fail;
     }
 # else
-  verify (O_NONBLOCK == 0);
+  {
+    verify (O_NONBLOCK == 0);
+  }
 # endif
 
   return 0;