From: Bruno Haible Date: Mon, 17 Oct 2016 00:16:57 +0000 (+0200) Subject: system-quote tests: Avoid compiler warning on AIX. X-Git-Tag: v1.0~6585 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=0edeb1befbe368ff32af08bd2cd9f977322b0d0e;p=gnulib.git system-quote tests: Avoid compiler warning on AIX. * tests/test-system-quote-child.c (fopen): Redefine like the system's does. --- diff --git a/ChangeLog b/ChangeLog index edc5962952..fc272a69e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2016-10-16 Bruno Haible + + system-quote tests: Avoid compiler warning on AIX. + * tests/test-system-quote-child.c (fopen): Redefine like the system's + does. + 2016-10-16 Bruno Haible Fix some "gcc -Wall" warnings. diff --git a/tests/test-system-quote-child.c b/tests/test-system-quote-child.c index 75ed87af57..4e4fcdd2b0 100644 --- a/tests/test-system-quote-child.c +++ b/tests/test-system-quote-child.c @@ -25,6 +25,10 @@ #undef fopen #undef fprintf #undef fread +/* Restore the original fopen definition on AIX. */ +#if defined _AIX && defined _LARGE_FILES +# define fopen fopen64 +#endif #define EXPECTED_DATA_FILE "t-sq-data.tmp"