]> Savannah Git Hosting - gnulib.git/commitdiff
system-quote tests: Avoid compiler warning on AIX.
authorBruno Haible <bruno@clisp.org>
Mon, 17 Oct 2016 00:16:57 +0000 (02:16 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 22 Oct 2016 17:35:48 +0000 (19:35 +0200)
* tests/test-system-quote-child.c (fopen): Redefine like the system's
<stdio.h> does.

ChangeLog
tests/test-system-quote-child.c

index edc5962952a8ad7d8c14a75df3fd0bb58241a71b..fc272a69e9d92fa38638896db64270f766a034ca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-10-16  Bruno Haible  <bruno@clisp.org>
+
+       system-quote tests: Avoid compiler warning on AIX.
+       * tests/test-system-quote-child.c (fopen): Redefine like the system's
+       <stdio.h> does.
+
 2016-10-16  Bruno Haible  <bruno@clisp.org>
 
        Fix some "gcc -Wall" warnings.
index 75ed87af579a8ffb91fa5afa4822c6b647432cc4..4e4fcdd2b0a5be0b8ec48918bb19ca01fe794a00 100644 (file)
 #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"