forked from cory/tildefriends
Build fix.
This commit is contained in:
parent
d5a7e19f1a
commit
3ee2c00726
@ -348,8 +348,7 @@ static JSValue _tf_ssb_set_server_following_me(JSContext* context, JSValueConst
|
|||||||
if (ssb)
|
if (ssb)
|
||||||
{
|
{
|
||||||
set_server_following_me_t* work = tf_malloc(sizeof(set_server_following_me_t));
|
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]),
|
.user = JS_ToCString(context, argv[0]),
|
||||||
.key = JS_ToCString(context, argv[1]),
|
.key = JS_ToCString(context, argv[1]),
|
||||||
.follow = JS_ToBool(context, argv[2]),
|
.follow = JS_ToBool(context, argv[2]),
|
||||||
|
@ -16,6 +16,11 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <unistd.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)
|
void tf_ssb_test_id_conversion(const tf_test_options_t* options)
|
||||||
{
|
{
|
||||||
tf_printf("Testing id conversion.\n");
|
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);
|
uv_loop_close(&loop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !TARGET_OS_IPHONE
|
||||||
static void _write_file(const char* path, const char* contents)
|
static void _write_file(const char* path, const char* contents)
|
||||||
{
|
{
|
||||||
FILE* file = fopen(path, "w");
|
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));
|
printf("returned %d\n", WEXITSTATUS(result));
|
||||||
assert(WEXITSTATUS(result) == 0);
|
assert(WEXITSTATUS(result) == 0);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user