Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed Dec 20, 2024
2 parents f3c97e4 + 39e0f7a commit 66880ed
Show file tree
Hide file tree
Showing 18 changed files with 53 additions and 104 deletions.
4 changes: 2 additions & 2 deletions packages/erlang/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://www.erlang.org/
TERMUX_PKG_DESCRIPTION="General-purpose concurrent functional programming language"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="27.1.2"
TERMUX_PKG_VERSION="27.2"
TERMUX_PKG_SRCURL=https://github.com/erlang/otp/archive/refs/tags/OTP-$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=365208d47f9590f27c0814ccd7ee7aec0e1b6ba2fe9d875e356edb5d9b054541
TERMUX_PKG_SHA256=0727cf869622544a2434a104109b31f5fadb8dc6b532287aea182fab95922ea8
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_VERSION_REGEXP='\d+(\.\d+)+'
TERMUX_PKG_DEPENDS="libc++, openssl, ncurses, zlib"
Expand Down
14 changes: 0 additions & 14 deletions packages/erlang/prefix.patch

This file was deleted.

4 changes: 2 additions & 2 deletions packages/esbuild/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://esbuild.github.io/
TERMUX_PKG_DESCRIPTION="An extremely fast JavaScript bundler"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.24.1"
TERMUX_PKG_VERSION="0.24.2"
TERMUX_PKG_SRCURL=https://github.com/evanw/esbuild/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=224b69bbb854e66cfbc9e8a3cf848e1af946bcfbcb3c89cfa9b99e2be63cb334
TERMUX_PKG_SHA256=171e1b0cd4c64222a1953203f6b3dab3c7a3f95b8939a72b4ebbd024302513b4
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BUILD_IN_SRC=true

Expand Down
5 changes: 3 additions & 2 deletions packages/fselect/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ TERMUX_PKG_HOMEPAGE=https://fselect.rocks/
TERMUX_PKG_DESCRIPTION="Find files with SQL-like queries"
TERMUX_PKG_LICENSE="Apache-2.0, MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.8.6"
TERMUX_PKG_VERSION="0.8.8"
TERMUX_PKG_SRCURL=https://github.com/jhspetersson/fselect/archive/$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=4b7a6dc5f6f3da39c3242856a1c78734c7b14bd801dc4d7e32bc6f5a1809bc63
TERMUX_PKG_SHA256=0f586c3870a66d4a3ab7b92409dcf0f68a23bd8031ec0cc3f1622efebe190c9e
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_DEPENDS="openssl"

termux_step_pre_configure() {
termux_setup_cmake
Expand Down
48 changes: 4 additions & 44 deletions packages/fselect/libmimalloc-sys-tls.diff
Original file line number Diff line number Diff line change
@@ -1,36 +1,7 @@
TLS-related functions (`__aeabi_read_tp`, `__tls_get_addr`) are not introduced
to bionic libc until Android 10. `__builtin_thread_pointer` will omit calls to
`__aeabi_read_tp` on arm, and causes build failure when `__ANDROID_API__` < 29.

TLS slot 1 has been used to storage thread id since Android 1.6 [1], and hasn't
changed until Android 14 [2,3]. If `__builtin_thread_pointer` is not available,
the default code path uses the method mentioned above to obtain a unique thread
id, and there doesn't seem to be anything wrong with this. If necessary in the
future, other methods can be made up for it, such as calling `pthread_self`.

Besides, force using Emulated TLS for better compatibility.

[1]: https://android.googlesource.com/platform/bionic/+/refs/tags/android-1.6_r1/libc/private/bionic_tls.h#57
[2]: https://android.googlesource.com/platform/bionic/+/refs/heads/android14-dev/libc/platform/bionic/tls_defines.h#86
[3]: https://android.googlesource.com/platform/bionic/+/refs/heads/android14-dev/libc/platform/bionic/tls_defines.h#106

The error message is as follows.

```
= note: ld.lld: error: undefined symbol: __aeabi_read_tp
>>> referenced by static.c
>>> 98cfcaec7182b1d8-static.o:(mi_free) in archive /tmp/rustcp5Rvgx/liblibmimalloc_sys-7086a69efa004ab8.rlib
>>> referenced by static.c
>>> 98cfcaec7182b1d8-static.o:(_mi_arena_segment_clear_abandoned) in archive /tmp/rustcp5Rvgx/liblibmimalloc_sys-7086a69efa004ab8.rlib
>>> referenced by static.c
>>> 98cfcaec7182b1d8-static.o:(_mi_arena_segment_clear_abandoned) in archive /tmp/rustcp5Rvgx/liblibmimalloc_sys-7086a69efa004ab8.rlib
>>> referenced 9 more times
clang-17: error: linker command failed with exit code 1 (use -v to see invocation)
```

--- a/build.rs
+++ b/build.rs
@@ -24,7 +28,10 @@
diff '--color=auto' -uNr a/build.rs b/build.rs
--- a/build.rs 2024-12-19 11:49:10.952717802 +0800
+++ b/build.rs 2024-12-19 11:49:50.486010280 +0800
@@ -25,7 +25,10 @@

let dynamic_tls = env::var("CARGO_FEATURE_LOCAL_DYNAMIC_TLS").is_ok();

Expand All @@ -42,14 +13,3 @@ The error message is as follows.
if dynamic_tls {
build.flag_if_supported("-ftls-model=local-dynamic");
} else {
--- a/c_src/mimalloc/include/mimalloc/prim.h
+++ b/c_src/mimalloc/include/mimalloc/prim.h
@@ -205,7 +205,7 @@

// Do we have __builtin_thread_pointer? (do not make this a compound test as it fails on older gcc's, see issue #851)
#if defined(__has_builtin)
-#if __has_builtin(__builtin_thread_pointer)
+#if __has_builtin(__builtin_thread_pointer) && (!defined(__ANDROID__) || __ANDROID_API__ >= 29)
#define MI_HAS_BUILTIN_THREAD_POINTER 1
#endif
#elif defined(__GNUC__) && (__GNUC__ >= 7) && defined(__aarch64__) // special case aarch64 for older gcc versions (issue #851)
6 changes: 3 additions & 3 deletions packages/gh/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://cli.github.com/
TERMUX_PKG_DESCRIPTION="GitHub’s official command line tool"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="Krishna kanhaiya @kcubeterm"
TERMUX_PKG_VERSION="2.63.2"
TERMUX_PKG_SRCURL=https://github.com/cli/cli/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=2578a8b1f00cb292a8094793515743f2a86e02b8d0b18d6b95959ddbeebd6b8d
TERMUX_PKG_VERSION="2.64.0"
TERMUX_PKG_SRCURL=https://github.com/cli/cli/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=229fd8fc51325ebb5a357af6af116094d6be6a5f1e0f0923b7892ed01b208abb
TERMUX_PKG_RECOMMENDS="openssh"
TERMUX_PKG_AUTO_UPDATE=true

Expand Down
4 changes: 2 additions & 2 deletions packages/gopls/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://github.com/golang/tools
TERMUX_PKG_DESCRIPTION="The official Go language server"
TERMUX_PKG_LICENSE="BSD 3-Clause"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.17.0"
TERMUX_PKG_VERSION="0.17.1"
TERMUX_PKG_SRCURL=https://github.com/golang/tools/archive/refs/tags/gopls/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=0d362528c42d4110933515cbabd7c6383048eb279a0b74a6322883acbcc3a381
TERMUX_PKG_SHA256=5794ebd3302ef4fd08de284834b22810dbb17b7e08efeeaa9b96d5c94eb90d6d
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+\.\d+\.\d+"

Expand Down
13 changes: 7 additions & 6 deletions packages/libnfs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ TERMUX_PKG_DESCRIPTION="NFS client library"
TERMUX_PKG_LICENSE="LGPL-2.1, BSD 2-Clause, GPL-3.0"
TERMUX_PKG_LICENSE_FILE="LICENCE-LGPL-2.1.txt, LICENCE-BSD.txt, LICENCE-GPL-3.txt"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="5.0.3"
TERMUX_PKG_VERSION="6.0.2"
TERMUX_PKG_SRCURL=https://github.com/sahlberg/libnfs/archive/libnfs-$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=d945cb4f4c8f82ee1f3640893a168810f794a28e1010bb007ec5add345e9df3e
TERMUX_PKG_SHA256=4e5459cc3e0242447879004e9ad28286d4d27daa42cbdcde423248fad911e747
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_METHOD=repology
TERMUX_PKG_BREAKS="libnfs-dev"
TERMUX_PKG_REPLACES="libnfs-dev"

termux_step_pre_configure() {
autoreconf -fi
}
TERMUX_PKG_DEPENDS="libgnutls"
TERMUX_PKG_FORCE_CMAKE=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
-DENABLE_MULTITHREADING=On
"
4 changes: 2 additions & 2 deletions packages/oh-my-posh/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://ohmyposh.dev
TERMUX_PKG_DESCRIPTION="A prompt theme engine for any shell."
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="24.16.0"
TERMUX_PKG_VERSION="24.16.1"
TERMUX_PKG_SRCURL=https://github.com/JanDeDobbeleer/oh-my-posh/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=8e19bc0ed631b5ce9be220e233afb38fee3a9122c8ef0b5557137af00b482e7d
TERMUX_PKG_SHA256=b561a8d9f3cf04c6a422de8965d9e184731eeace9c0bc5f2df15f3e9acc67e91
TERMUX_PKG_AUTO_UPDATE=true

termux_step_pre_configure() {
Expand Down
4 changes: 2 additions & 2 deletions packages/python-apt/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://apt-team.pages.debian.net/python-apt/
TERMUX_PKG_DESCRIPTION="Python bindings for APT"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="2.9.4"
TERMUX_PKG_VERSION="2.9.5"
TERMUX_PKG_SRCURL=https://ftp.debian.org/debian/pool/main/p/python-apt/python-apt_${TERMUX_PKG_VERSION}.tar.xz
TERMUX_PKG_SHA256=b44c2a9c38074f1197c5c94b45eb0eaa465beaf6290eaf868697c656a3a57861
TERMUX_PKG_SHA256=234ebec9bd827ee60af99fb34e83889f27b13b870959b7c072cd82c1c18ea3e7
TERMUX_PKG_DEPENDS="apt, libandroid-support, libc++, python"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true
Expand Down
4 changes: 2 additions & 2 deletions packages/sabnzbd/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ TERMUX_PKG_DESCRIPTION="Fully automated Usenet Binary Downloader"
TERMUX_PKG_LICENSE="GPL-2.0, GPL-3.0"
TERMUX_PKG_LICENSE_FILE="LICENSE.txt, GPL2.txt, GPL3.txt"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="4.4.0"
TERMUX_PKG_VERSION="4.4.1"
TERMUX_PKG_SRCURL=https://github.com/sabnzbd/sabnzbd/releases/download/${TERMUX_PKG_VERSION}/SABnzbd-${TERMUX_PKG_VERSION}-src.tar.gz
TERMUX_PKG_SHA256=0418448bcae493f63f8f8ff4f84eb589e44b91f361da1d1a51910eda9d4679ef
TERMUX_PKG_SHA256=a9ebf273d77c6d3cc9a13b1bd1640b903f4891e58aee3ef5a25595db3aa4d7fb
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_DEPENDS="python, python-cryptography, python-sabyenc3, termux-tools, par2, unrar, p7zip, unzip"
TERMUX_PKG_PLATFORM_INDEPENDENT=true
Expand Down
4 changes: 2 additions & 2 deletions packages/sing-box/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://sing-box.sagernet.org
TERMUX_PKG_DESCRIPTION="The universal proxy platform"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="[email protected]"
TERMUX_PKG_VERSION="1.10.3"
TERMUX_PKG_VERSION="1.10.4"
TERMUX_PKG_SRCURL="https://github.com/SagerNet/sing-box/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=93c4fe679988a5414e45886c66f3b969917aa1940bb807f2e0281fdaf4fe27ef
TERMUX_PKG_SHA256=2253aabe7d847eb8385fdc66879eb5d748255b663fe77a1dbb2b2c780f015163
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true

Expand Down
4 changes: 2 additions & 2 deletions packages/speedtest-go/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://github.com/showwin/speedtest-go/
TERMUX_PKG_DESCRIPTION="Command line interface to test internet speed using speedtest.net"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="1.7.9"
TERMUX_PKG_VERSION="1.7.10"
TERMUX_PKG_SRCURL=https://github.com/showwin/speedtest-go/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=1273ad19dc8ecc4ff40204c62c372bb90c81c73c1cf3a9b208bab7f1035dfa67
TERMUX_PKG_SHA256=70a2937d0759820fe7ee8f61b960d60c07b34c0d783ed11c0065b68fe2964aea
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BUILD_IN_SRC=true

Expand Down
4 changes: 2 additions & 2 deletions packages/vtm/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ TERMUX_PKG_DESCRIPTION="Terminal multiplexer with TUI window manager and multi-p
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_LICENSE_FILE="LICENSE"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.9.99.58"
TERMUX_PKG_VERSION="0.9.99.60"
TERMUX_PKG_SRCURL=https://github.com/netxs-group/vtm/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=05e410529413b7405ee15574c22f7ce3d210a0d3797bdfa1d30e365650aeeb9a
TERMUX_PKG_SHA256=8bbe2e8710ca603fdd80bcb221f17b2eba2cbc5c8b6ca093b6559f0d7a5bf80d
TERMUX_PKG_DEPENDS="libc++"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true
Expand Down
2 changes: 1 addition & 1 deletion packages/wasmtime/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="A standalone runtime for WebAssembly"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_LICENSE_FILE="LICENSE"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="27.0.0"
TERMUX_PKG_VERSION="28.0.0"
TERMUX_PKG_SRCURL=git+https://github.com/bytecodealliance/wasmtime
TERMUX_PKG_GIT_BRANCH="v${TERMUX_PKG_VERSION}"
TERMUX_PKG_BUILD_IN_SRC=true
Expand Down
4 changes: 2 additions & 2 deletions packages/yazi/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://yazi-rs.github.io/
TERMUX_PKG_DESCRIPTION="Blazing fast terminal file manager written in Rust, based on async I/O"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.4.1"
TERMUX_PKG_VERSION="0.4.2"
TERMUX_PKG_SRCURL=https://github.com/sxyazi/yazi/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=702f7f7b69248d8e2bc2d75c1f293d6c92bad4e37a87e5e02850ba44ece44e2c
TERMUX_PKG_SHA256=88995c90954d140f455cf9ca4f87f9ca36390717377be86b0672456e1eb5f65f
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BUILD_IN_SRC=true

Expand Down
7 changes: 4 additions & 3 deletions x11-packages/audacity/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ TERMUX_PKG_DESCRIPTION="An easy-to-use, multi-track audio editor and recorder"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="3.7.1"
_FFMPEG_VERSION=6.1.1
TERMUX_PKG_REVISION=1
_FFMPEG_VERSION=7.1
TERMUX_PKG_SRCURL=(https://github.com/audacity/audacity/archive/Audacity-${TERMUX_PKG_VERSION}.tar.gz
https://www.ffmpeg.org/releases/ffmpeg-${_FFMPEG_VERSION}.tar.xz)
TERMUX_PKG_SHA256=(
02457fe0ae1dab3a9a50ce54836cdd78a2d3ab51650d42696cab417210f03906
8684f4b00f94b85461884c3719382f1261f0d9eb3d59640a1f4ac0873616f968
40973d44970dbc83ef302b0609f2e74982be2d85916dd2ee7472d30678a7abe6
)
TERMUX_PKG_DEPENDS="gdk-pixbuf, glib, gtk3, libc++, libexpat, libflac, libid3tag, libogg, libopus, libsndfile, libsoundtouch, libsoxr, libuuid, libvorbis, libwavpack, mpg123, opusfile, portaudio, portmidi, wxwidgets"
TERMUX_PKG_BUILD_DEPENDS="libjpeg-turbo, libjpeg-turbo-static, libmp3lame, libpng, rapidjson, zlib"
Expand Down Expand Up @@ -85,7 +86,7 @@ obtain_deb_url() {
termux_step_host_build() {
termux_setup_cmake
termux_setup_ninja

( # Running build in a subshell to avoid variable mess
# We must build the `image-compiler` for building.
# See https://github.com/audacity/audacity/blob/Audacity-3.6.4/BUILDING.md#selecting-target-architecture-on-macos
Expand Down
22 changes: 11 additions & 11 deletions x11-packages/audacity/ffmpeg-configure.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
+++ ./ffmpeg-6.1.1/configure
+++ ./ffmpeg-7.1/configure
@@ -5336,13 +5336,9 @@
striptype=""
;;
Expand All @@ -13,7 +13,7 @@
;;
haiku)
prefix_default="/boot/common"
+++ ./ffmpeg-6.1.1/libavcodec/allcodecs.c
+++ ./ffmpeg-7.1/libavcodec/allcodecs.c
@@ -154,7 +154,6 @@
extern const FFCodec ff_h264_crystalhd_decoder;
extern const FFCodec ff_h264_v4l2m2m_decoder;
Expand All @@ -30,22 +30,22 @@
extern const FFCodec ff_h264_mf_encoder;
extern const FFCodec ff_h264_nvenc_encoder;
extern const FFCodec ff_h264_omx_encoder;
+++ ./ffmpeg-6.1.1/libavutil/file_open.c
@@ -119,7 +119,7 @@
#undef free
free(ptr);
#else
+++ ./ffmpeg-7.1/libavutil/file_open.c
@@ -113,7 +113,7 @@
FileLogContext file_log_ctx = { &file_log_ctx_class, log_offset, log_ctx };
int fd = -1;
#if HAVE_MKSTEMP
- size_t len = strlen(prefix) + 12; /* room for "/tmp/" and "XXXXXX\0" */
+ size_t len = strlen(prefix) + strlen("@TERMUX_PREFIX@/tmp/") + 7; /* room for "@TERMUX_PREFIX@/tmp/" and "XXXXXX\0" */
*filename = av_malloc(len);
#endif
/* -----common section-----*/
@@ -136,7 +136,7 @@
#elif HAVE_TEMPNAM
void *ptr= tempnam(NULL, prefix);
@@ -139,7 +139,7 @@
# endif
fd = open(*filename, O_RDWR | O_BINARY | O_CREAT | O_EXCL, 0600);
#else
- snprintf(*filename, len, "/tmp/%sXXXXXX", prefix);
+ snprintf(*filename, len, "@TERMUX_PREFIX@/tmp/%sXXXXXX", prefix);
fd = mkstemp(*filename);
#if defined(_WIN32) || defined (__ANDROID__)
#if defined(_WIN32) || defined (__ANDROID__) || defined(__DJGPP__)
if (fd < 0) {

0 comments on commit 66880ed

Please sign in to comment.