Build fix.

This commit is contained in:
Cory McWilliams 2024-06-16 17:08:10 -04:00
parent d5a7e19f1a
commit 3ee2c00726
2 changed files with 8 additions and 2 deletions

View File

@ -348,8 +348,7 @@ static JSValue _tf_ssb_set_server_following_me(JSContext* context, JSValueConst
if (ssb)
{
set_server_following_me_t* work = tf_malloc(sizeof(set_server_following_me_t));
*work = (set_server_following_me_t)
{
*work = (set_server_following_me_t) {
.user = JS_ToCString(context, argv[0]),
.key = JS_ToCString(context, argv[1]),
.follow = JS_ToBool(context, argv[2]),

View File

@ -16,6 +16,11 @@
#include <time.h>
#include <unistd.h>
#if defined(_WIN32)
#define WIFEXITED(x) 1
#define WEXITSTATUS(x) (x)
#endif
void tf_ssb_test_id_conversion(const tf_test_options_t* options)
{
tf_printf("Testing id conversion.\n");
@ -820,6 +825,7 @@ void tf_ssb_test_go_ssb_room(const tf_test_options_t* options)
uv_loop_close(&loop);
}
#if !TARGET_OS_IPHONE
static void _write_file(const char* path, const char* contents)
{
FILE* file = fopen(path, "w");
@ -858,3 +864,4 @@ void tf_ssb_test_encrypt(const tf_test_options_t* options)
printf("returned %d\n", WEXITSTATUS(result));
assert(WEXITSTATUS(result) == 0);
}
#endif