From: Bruno Haible Date: Sun, 19 Dec 2010 23:32:29 +0000 (+0100) Subject: stdio: Fix problem with popen() declaration on OSF/1 5.1. X-Git-Tag: v0.1~3533 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=0f831d73fa8f157132e1628349a2d5494b8116ec;p=gnulib.git stdio: Fix problem with popen() declaration on OSF/1 5.1. * lib/stdio.in.h: During the include_next statement, let recursive includes of this file include only the system header file. --- diff --git a/ChangeLog b/ChangeLog index 866f5953d..62a20ce95 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2010-12-19 Bruno Haible + stdio: Fix problem with popen() declaration on OSF/1 5.1. + * lib/stdio.in.h: During the include_next statement, let recursive + includes of this file include only the system header file. + +2010-12-19 Bruno Haible + iconv_open: Fix regression from 2010-12-04. * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo. Reported by Noah Lavine . diff --git a/lib/stdio.in.h b/lib/stdio.in.h index 6c41d4410..2b84cfe96 100644 --- a/lib/stdio.in.h +++ b/lib/stdio.in.h @@ -21,8 +21,14 @@ #endif @PRAGMA_COLUMNS@ -#if defined __need_FILE || defined __need___FILE -/* Special invocation convention inside glibc header files. */ +#if defined __need_FILE || defined __need___FILE || defined _GL_ALREADY_INCLUDING_STDIO_H +/* Special invocation convention: + - Inside glibc header files. + - On OSF/1 5.1 we have a sequence of nested includes + -> -> -> -> + -> -> -> . + In this situation, the functions are not yet declared, therefore we cannot + provide the C++ aliases. */ #@INCLUDE_NEXT@ @NEXT_STDIO_H@ @@ -31,9 +37,13 @@ #ifndef _GL_STDIO_H +#define _GL_ALREADY_INCLUDING_STDIO_H + /* The include_next requires a split double-inclusion guard. */ #@INCLUDE_NEXT@ @NEXT_STDIO_H@ +#undef _GL_ALREADY_INCLUDING_STDIO_H + #ifndef _GL_STDIO_H #define _GL_STDIO_H