pipe2: Fix compilation on pre-C99 compilers.
authorBruno Haible <bruno@clisp.org>
Fri, 23 Sep 2011 21:03:42 +0000 (23:03 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 23 Sep 2011 21:03:42 +0000 (23:03 +0200)
* lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.

ChangeLog
lib/pipe2.c

index f6d7f09..2032a9f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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.
        * lib/msvc-nothrow.h: New file.
        * lib/msvc-nothrow.c: New file.
index 5420788..cd1fe56 100644 (file)
@@ -95,7 +95,9 @@ pipe2 (int fd[2], int flags)
         goto fail;
     }
 # else
-  verify (O_NONBLOCK == 0);
+  {
+    verify (O_NONBLOCK == 0);
+  }
 # endif
 
   return 0;