# --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: package/.../man/compile.patch.dietlibc # Copyright (C) 2006 - 2016 The T2 SDE Project # # More information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # --- T2-COPYRIGHT-NOTE-END --- --- ./src/man.c.orig 2006-06-19 00:21:55.000000000 +0200 +++ ./src/man.c 2006-06-19 00:24:43.000000000 +0200 @@ -30,6 +30,9 @@ #include #include #include +#include +#define index strchr +#define rindex strrchr #ifndef R_OK #define R_OK 4 --- ./src/man-config.c.orig 2006-06-19 00:26:33.000000000 +0200 +++ ./src/man-config.c 2006-06-19 00:27:06.000000000 +0200 @@ -32,6 +32,7 @@ #include "paths.h" #include "gripes.h" #include "util.h" +#define rindex strrchr #define BUFSIZE 4096 --- ./src/to_cat.c.orig 2006-06-19 00:29:10.000000000 +0200 +++ ./src/to_cat.c 2006-06-19 00:29:22.000000000 +0200 @@ -1,6 +1,7 @@ #include #include #include +#define rindex strrchr extern char *rindex (const char *, int); /* not always in */ --- ./src/manpath.c.orig 2006-06-19 00:29:57.000000000 +0200 +++ ./src/manpath.c 2006-06-19 00:30:16.000000000 +0200 @@ -26,6 +26,8 @@ #include #include #include +#define index strchr +#define rindex strrchr /* not always in */ extern char *index(const char *, int);