summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2022-07-28 00:40:09 +0800
committerruki <[email protected]>2022-07-28 00:40:09 +0800
commit35a16e3972d1f5993f47b1b4eaf61b27358176d6 (patch)
tree223912c77128acd5b9dea38fc2940410ff6aae55 /core/src
parent052592ef62dc4d868a8ad27b7aa6b93605e77586 (diff)
fix errors
Diffstat (limited to 'core/src')
-rw-r--r--core/src/xmake/io/stdfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/xmake/io/stdfile.c b/core/src/xmake/io/stdfile.c
index 25364d9c7..06d6fc579 100644
--- a/core/src/xmake/io/stdfile.c
+++ b/core/src/xmake/io/stdfile.c
@@ -33,6 +33,7 @@
# include <io.h>
# include "iscygpty.c"
#else
+# include <stdio.h>
# include <unistd.h>
# include <sys/types.h>
# include <sys/stat.h>
@@ -87,7 +88,6 @@ static tb_void_t xm_io_stdfile_init_buffer(tb_size_t type)
#if !defined(TB_CONFIG_OS_WINDOWS)
struct stat stats;
tb_int_t size = BUFSIZ;
- int fileno(FILE*);
if (fstat(fileno(stdout), &stats) != -1)
size = stats.st_blksize;
setvbuf(stdout, tb_null, _IOLBF, size);