From: Bruno Haible Date: Fri, 23 Sep 2011 21:03:42 +0000 (+0200) Subject: pipe2: Fix compilation on pre-C99 compilers. X-Git-Tag: v0.1~1772 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=fd990b2577a77591d4a39cf2dea236aaf641a77d;p=gnulib.git pipe2: Fix compilation on pre-C99 compilers. * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces. --- diff --git a/ChangeLog b/ChangeLog index f6d7f09fb7..2032a9f2df 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-09-23 Bruno Haible + + pipe2: Fix compilation on pre-C99 compilers. + * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces. + 2011-09-23 Bruno Haible New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9. diff --git a/lib/pipe2.c b/lib/pipe2.c index 5420788d19..cd1fe56413 100644 --- a/lib/pipe2.c +++ b/lib/pipe2.c @@ -95,7 +95,9 @@ pipe2 (int fd[2], int flags) goto fail; } # else - verify (O_NONBLOCK == 0); + { + verify (O_NONBLOCK == 0); + } # endif return 0;