]> Savannah Git Hosting - gnulib.git/commitdiff
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 f6d7f09fb7d2adbb2b85e8a39985affbfbbffd7c..2032a9f2df26867480b76c23a87677bf1bed1162 100644 (file)
--- 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.
index 5420788d190b4c8c6bfad2d861bd988d5f3ece35..cd1fe56413c7048a2ce9d0f6a83a948295e9f8ef 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;