build: Minor cleanup and a disappointing workaround for iOS cross-compiling toolchain issues I don't understand.
Some checks failed
Build Tilde Friends / Build-All (push) Failing after 20m9s

This commit is contained in:
2025-02-01 16:24:31 -05:00
parent 0c181d7e7c
commit f0c1a8f98f
3 changed files with 10 additions and 3 deletions

View File

@ -18,6 +18,10 @@
#include "sodium/crypto_sign.h"
#if defined(__APPLE__)
#include <TargetConditionals.h>
#endif
#if !defined(_WIN32)
#include <sys/wait.h>
#endif

View File

@ -40,6 +40,10 @@
#define WEXITSTATUS(x) (x)
#endif
#if defined(__APPLE__)
#include <TargetConditionals.h>
#endif
#if !defined(__APPLE__) && !defined(__OpenBSD__)
#include <malloc.h>
#endif
@ -726,7 +730,6 @@ static JSValue _tf_task_platform(JSContext* context, JSValueConst this_val, int
#elif defined(__ANDROID__)
return JS_NewString(context, "android");
#elif defined(__APPLE__)
#include <TargetConditionals.h>
#if TARGET_OS_IPHONE
return JS_NewString(context, "iphone");
#else