Author: hbelusca Date: Sun Mar 29 00:52:49 2015 New Revision: 66945
URL: http://svn.reactos.org/svn/reactos?rev=66945&view=rev Log: [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.
Modified: trunk/reactos/tools/cat.c
Modified: trunk/reactos/tools/cat.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/cat.c?rev=66945&r... ============================================================================== --- trunk/reactos/tools/cat.c [iso-8859-1] (original) +++ trunk/reactos/tools/cat.c [iso-8859-1] Sun Mar 29 00:52:49 2015 @@ -8,8 +8,16 @@ * Hermès Bélusca - Maïto */
+#include <stdio.h> + +#ifdef _WIN32 #include <fcntl.h> -#include <stdio.h> +#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]))