summaryrefslogtreecommitdiff
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
parent052592ef62dc4d868a8ad27b7aa6b93605e77586 (diff)
fix errors
-rw-r--r--.github/workflows/freebsd.yml2
-rw-r--r--core/src/xmake/io/stdfile.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml
index 9a81d1a6c..e9c55944d 100644
--- a/.github/workflows/freebsd.yml
+++ b/.github/workflows/freebsd.yml
@@ -27,7 +27,7 @@ jobs:
copyback: false
prepare: pkg install -y curl unzip gmake llvm gsed bash perl5
run: |
- gmake
+ gmake -j4
gmake install
export XMAKE_ROOT=y
xrepo --version
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);