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 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; -- 2.39.5