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: http://erislabs.org.uk/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 f6d7f09fb..2032a9f2d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 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. * lib/msvc-nothrow.h: New file. * lib/msvc-nothrow.c: New file. diff --git a/lib/pipe2.c b/lib/pipe2.c index 5420788d1..cd1fe5641 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;