summaryrefslogtreecommitdiffstats
path: root/meta/packages/coreutils/coreutils-5.3.0/rename-tee-for-glibc2.5.patch
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2007-04-25 13:23:09 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2007-04-25 13:23:09 +0000
commit2445bb8a765ecdcc2386a60c9c8e876cff727ad2 (patch)
treec58182e36d07fbbb65dec7cda4e634006b6a8ea6 /meta/packages/coreutils/coreutils-5.3.0/rename-tee-for-glibc2.5.patch
parentad2237b813cd10b2168422373cc4799e041c5885 (diff)
downloadpoky-2445bb8a765ecdcc2386a60c9c8e876cff727ad2.tar.gz
coreutils: add forgotten patches for 5.3.0
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1558 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/coreutils/coreutils-5.3.0/rename-tee-for-glibc2.5.patch')
-rw-r--r--meta/packages/coreutils/coreutils-5.3.0/rename-tee-for-glibc2.5.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/packages/coreutils/coreutils-5.3.0/rename-tee-for-glibc2.5.patch b/meta/packages/coreutils/coreutils-5.3.0/rename-tee-for-glibc2.5.patch
new file mode 100644
index 0000000000..148a5f4f8f
--- /dev/null
+++ b/meta/packages/coreutils/coreutils-5.3.0/rename-tee-for-glibc2.5.patch
@@ -0,0 +1,33 @@
1Glibc 2.5 has a function called tee which conflicts with the same function
2in coreutils. This patch renames the function to tee_files (as is done in
3the newer coreutils versions.)
4
5--- coreutils-5.3.0/src/tee.c 2006/10/23 07:35:00 1.1
6+++ coreutils-5.3.0/src/tee.c 2006/10/23 07:35:16
7@@ -31,7 +31,7 @@
8
9 #define AUTHORS "Mike Parker", "Richard M. Stallman", "David MacKenzie"
10
11-static bool tee (int nfiles, const char **files);
12+static bool tee_files (int nfiles, const char **files);
13
14 /* If true, append to output files rather than truncating them. */
15 static bool append;
16@@ -121,7 +121,7 @@
17 /* Do *not* warn if tee is given no file arguments.
18 POSIX requires that it work when given no arguments. */
19
20- ok = tee (argc - optind, (const char **) &argv[optind]);
21+ ok = tee_files (argc - optind, (const char **) &argv[optind]);
22 if (close (STDIN_FILENO) != 0)
23 error (EXIT_FAILURE, errno, _("standard input"));
24
25@@ -133,7 +133,7 @@
26 Return true if successful. */
27
28 static bool
29-tee (int nfiles, const char **files)
30+tee_files (int nfiles, const char **files)
31 {
32 FILE **descriptors;
33 char buffer[BUFSIZ];