# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/man/compile.patch.dietlibc # Copyright (C) 2006 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-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);