bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pipe2: fix compilation


From: Bruno Haible
Subject: pipe2: fix compilation
Date: Fri, 23 Sep 2011 23:04:31 +0200
User-agent: KMail/1.13.6 (Linux/2.6.37.6-0.5-desktop; KDE/4.6.0; x86_64; ; )

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  <address@hidden>

        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

[Prev in Thread] Current Thread [Next in Thread]