diff options
Diffstat (limited to 'lib/kernel/test/os_SUITE_data/my_fds.c')
-rw-r--r-- | lib/kernel/test/os_SUITE_data/my_fds.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/kernel/test/os_SUITE_data/my_fds.c b/lib/kernel/test/os_SUITE_data/my_fds.c index 8b1ce13822..dedb113c70 100644 --- a/lib/kernel/test/os_SUITE_data/my_fds.c +++ b/lib/kernel/test/os_SUITE_data/my_fds.c @@ -7,7 +7,12 @@ int main(int argc, char** argv) { +#if defined (__WIN32__) + printf("Windows"); +#else char buff[1]; - int res = read(stdin, buff, 1); + int res = read(STDIN_FILENO, buff, 1); printf("%d", res); +#endif + return 0; } |