diff options
author | Timo Teräs <timo.teras@iki.fi> | 2014-03-20 12:19:52 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2014-03-20 12:20:37 +0000 |
commit | 26df47535ef1486f6502d65c160b1b85125a1af7 (patch) | |
tree | 2125e2a7f4592e336397b0540374e0bf613e927c /main/slang/musl-fix-posix_close-clash.patch | |
parent | b5858b1ccea9f3c1dcb57ba54bdfe0e1cd2b65a6 (diff) | |
download | aports-26df47535ef1486f6502d65c160b1b85125a1af7.tar.bz2 aports-26df47535ef1486f6502d65c160b1b85125a1af7.tar.xz |
main/slang: fix posix_close name clash
Diffstat (limited to 'main/slang/musl-fix-posix_close-clash.patch')
-rw-r--r-- | main/slang/musl-fix-posix_close-clash.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main/slang/musl-fix-posix_close-clash.patch b/main/slang/musl-fix-posix_close-clash.patch new file mode 100644 index 0000000000..a02a17f901 --- /dev/null +++ b/main/slang/musl-fix-posix_close-clash.patch @@ -0,0 +1,20 @@ +--- slang-2.2.4.orig/src/slposio.c ++++ slang-2.2.4/src/slposio.c +@@ -363,7 +363,7 @@ + return 0; + } + +-static int posix_close (SLFile_FD_Type *f) ++static int posix_close_slfile (SLFile_FD_Type *f) + { + int status = do_close (f); + +@@ -1001,7 +1001,7 @@ + MAKE_INTRINSIC_2("write", posix_write, V, F, B), + MAKE_INTRINSIC_1("dup_fd", posix_dup, V, F), + MAKE_INTRINSIC_2("dup2_fd", posix_dup2, I, F, I), +- MAKE_INTRINSIC_1("close", posix_close, I, F), ++ MAKE_INTRINSIC_1("close", posix_close_slfile, I, F), + MAKE_INTRINSIC_1("_close", posix_close_fd, I, I), + #if defined(TTYNAME_R) + MAKE_INTRINSIC_0("ttyname", posix_ttyname, V), |