Skip to content

Commit 80128e3

Browse files
Disable linkat() on WASI.
1 parent b4be526 commit 80128e3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Modules/posixmodule.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,11 @@ extern char *ctermid_r(char *);
573573
# define HAVE_FACCESSAT_RUNTIME 1
574574
# define HAVE_FCHMODAT_RUNTIME 1
575575
# define HAVE_FCHOWNAT_RUNTIME 1
576+
#ifdef __wasi__
577+
# define HAVE_LINKAT_RUNTIME 0
578+
# else
576579
# define HAVE_LINKAT_RUNTIME 1
580+
# endif
577581
# define HAVE_FDOPENDIR_RUNTIME 1
578582
# define HAVE_MKDIRAT_RUNTIME 1
579583
# define HAVE_RENAMEAT_RUNTIME 1

0 commit comments

Comments
 (0)