This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED] [PATCH] stdio-common: Include <libc-internal.h> in some tests
- From: Adhemerval Zanella <azanella at linux dot vnet dot ibm dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Mon, 15 Dec 2014 15:36:21 -0200
- Subject: [COMMITTED] [PATCH] stdio-common: Include <libc-internal.h> in some tests
- Authentication-results: sourceware.org; auth=none
This patch adds the missing libc-internal.h include on test-vprintf.c
tst-sprintf.c.
It fixes the tests build failing I was seeing on powerpc64 and powerpc32.
--
* stdio-common/test-vfprintf.c: Include <libc-internal.h>.
* stdio-common/tst-sprintf.c: Likewise.
--
diff --git a/stdio-common/test-vfprintf.c b/stdio-common/test-vfprintf.c
index 8483d8d..66e7d5c 100644
--- a/stdio-common/test-vfprintf.c
+++ b/stdio-common/test-vfprintf.c
@@ -25,6 +25,7 @@
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
+#include <libc-internal.h>
const char *locs[] =
diff --git a/stdio-common/tst-sprintf.c b/stdio-common/tst-sprintf.c
index ea3008b..d5284b9 100644
--- a/stdio-common/tst-sprintf.c
+++ b/stdio-common/tst-sprintf.c
@@ -2,6 +2,7 @@
#include <stdlib.h>
#include <locale.h>
#include <string.h>
+#include <libc-internal.h>
static int