From d8714d6ad9600eec39dc5fe6fb2148f49723b40e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Sun, 29 Mar 2015 00:52:49 +0000 Subject: [PATCH] [CAT] - stricmp doesn't exist in *nix, use strcasecmp instead. - setmode (for setting IO streams mode -- text, binary --) is useless in *nix world, so just define it as a dummy function. Should fix build. svn path=/trunk/; revision=66945 --- reactos/tools/cat.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/reactos/tools/cat.c b/reactos/tools/cat.c index 79e0741b744..6d606e50dc2 100644 --- a/reactos/tools/cat.c +++ b/reactos/tools/cat.c @@ -8,9 +8,17 @@ * Hermès Bélusca - Maïto */ -#include #include +#ifdef _WIN32 +#include +#else +#define O_TEXT 0x4000 +#define O_BINARY 0x8000 +#define setmode(fd, mode) // This function is useless in *nix world. +#define stricmp strcasecmp +#endif + #define ARRAYSIZE(a) (sizeof(a) / sizeof((a)[0])) void help(void)