On MSVC 9, a compilation error is seen in lib/pipe2.c:98. A declaration-
after-statement problem, introduced on 2011-06-02. This fixes it.


2011-09-23  Bruno Haible  <[email protected]>

        pipe2: Fix compilation on pre-C99 compilers.
        * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.

--- lib/pipe2.c.orig    Fri Sep 23 23:01:04 2011
+++ lib/pipe2.c Fri Sep 23 23:00:49 2011
@@ -95,7 +95,9 @@
         goto fail;
     }
 # else
-  verify (O_NONBLOCK == 0);
+  {
+    verify (O_NONBLOCK == 0);
+  }
 # endif
 
   return 0;

-- 
In memoriam Ghazala Khan <http://en.wikipedia.org/wiki/Ghazala_Khan>

Reply via email to