Dash:
[t2-trunk.git] / package / base / dietlibc / hostlibc.diff
blob4bbcac7780f3ed9c8b82373daea1b8a4dfbbde96
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../dietlibc/hostlibc.diff
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 We do not want to build dietlibc twice for cross builds - just to get the
18 tiny wrapper for the building host ...
20 - Rene Rebe <rene@exactcode.de>
22 --- dietlibc/diet.c 2000-01-01 00:00:00.000000000 +0100
23 +++ dietlibc-fixed/diet.c 2005-01-30 16:53:10.181709691 +0100
24 @@ -3,10 +3,13 @@
25 #include <fcntl.h>
26 #include <stdio.h>
27 #include <stdlib.h>
28 -#include <write12.h>
30 #include "dietfeatures.h"
32 +int __write2 (const char* s) {
33 + return write(2, s, strlen(s));
36 /* goal:
37 * when invoked as
38 * "diet gcc -c t.c"