From fd990b2577a77591d4a39cf2dea236aaf641a77d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 23 Sep 2011 23:03:42 +0200 Subject: [PATCH] pipe2: Fix compilation on pre-C99 compilers. * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces. --- ChangeLog | 5 +++++ lib/pipe2.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) 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; -- 2.11.0