1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../fgetty/x-de-diet-fication.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
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
15 # --- T2-COPYRIGHT-NOTE-END ---
17 Fixed fgetty to build witout dietlibc.
19 - Rene Rebe <rene@exactcode.de>
21 --- ./fgetty.c.vanilla 2005-02-27 11:30:39.580133784 +0100
22 +++ ./fgetty.c 2005-02-27 11:31:37.798283280 +0100
24 #include <sys/ioctl.h>
31 --- ./login.c.vanilla 2005-02-27 11:33:30.557141328 +0100
32 +++ ./login.c 2005-02-27 11:33:41.628458232 +0100
37 +extern char **environ;
39 void die(const char *message) {
40 write(2,message,strlen(message));
42 --- ./ltostr.c.vanilla 2005-02-27 11:37:07.164212048 +0100
43 +++ ./ltostr.c 2005-02-27 11:37:38.768407480 +0100
50 +int __ltostr(char *s, unsigned int size, unsigned long i, unsigned int base, int UpCase)
59 + if ((base==0)||(base>36)) base=10;
71 + if ((*tmp=i%base+'0')>'9') *tmp+=(UpCase?'A':'a')-'9'-1;
81 --- ./Makefile.vanilla 2005-02-27 11:32:44.925078456 +0100
82 +++ ./Makefile 2005-02-27 11:42:09.696220192 +0100
91 # gcc -march=i386 -mcpu=i386 -pipe -Os -fomit-frame-pointer -I../dietlibc/include -c $^ -DTEST
93 $(CROSS)$(STRIP) -x -R .comment -R .note $@
96 - $(DIET) $(CROSS)$(CC) -nostdlib -o $@ $^ $(LDFLAGS)
97 + $(DIET) $(CROSS)$(CC) -o $@ $^ $(LDFLAGS)
99 fgetty: fgetty.o fmt_ulong.o
102 +login: login.o ltostr.o
104 checkpassword: checkpassword.o