0
0
mirror of https://github.com/cjdelisle/cjdns synced 2025-10-06 00:32:50 +02:00

Windows fixes

This commit is contained in:
Caleb James DeLisle
2021-01-18 18:13:10 +01:00
parent cba6edd5b4
commit ceed53cf64
5 changed files with 6 additions and 6 deletions

2
Cargo.lock generated
View File

@@ -293,7 +293,7 @@ dependencies = [
[[package]]
name = "libuv-sys2"
version = "1.40.0"
source = "git+https://github.com/cjdelisle/libuv-sys?rev=ff461c39dcff45c782c7b2dd90abb89b56a5bd5e#ff461c39dcff45c782c7b2dd90abb89b56a5bd5e"
source = "git+https://github.com/cjdelisle/libuv-sys?rev=dc3c3427fa7f4f9f6781ab462478ca5de97d577c#dc3c3427fa7f4f9f6781ab462478ca5de97d577c"
dependencies = [
"cc",
"pkg-config",

View File

@@ -123,7 +123,7 @@ typedef struct Ctx_s {
Identity
} Ctx_t;
static void incomingMsgs(uv_async_t* handle, int status)
static void incomingMsgs(uv_async_t* handle)
{
Ctx_t* ctx = Identity_containerOf(handle, Ctx_t, notifier);
uv_mutex_lock(&ctx->lock);

View File

@@ -7,7 +7,7 @@ build = "build.rs"
[dependencies]
sodiumoxide = { git = "https://github.com/cjdelisle/sodiumoxide", rev = "76dc0e6e587b8c8a4bb193ebba9f8ae8f090b81b", default-features = false, features = ["std"] }
libuv-sys2 = { git = "https://github.com/cjdelisle/libuv-sys", rev = "ff461c39dcff45c782c7b2dd90abb89b56a5bd5e", default-features = false, features = ["no-bindings","with-headers"] }
libuv-sys2 = { git = "https://github.com/cjdelisle/libuv-sys", rev = "dc3c3427fa7f4f9f6781ab462478ca5de97d577c", default-features = false, features = ["no-bindings","with-headers"] }
thiserror = "1.0"
anyhow = "1.0"

View File

@@ -68,7 +68,7 @@ static void unlinkTo(struct Timeout* timeout)
/**
* The callback to be called by libuv.
*/
static void handleEvent(uv_timer_t* handle, int status)
static void handleEvent(uv_timer_t* handle)
{
struct Timeout* timeout = Identity_check((struct Timeout*) handle);
if (!timeout->isArmed) { return; }

View File

@@ -27,8 +27,8 @@ build() {
export CROSS=1
export SYSTEM=win32
cargo build --release -vv --target="$ARCH-pc-windows-gnu"
cargo build --release --target="$ARCH-pc-windows-gnu"
}
# build i686 - impossible because rust: https://github.com/rust-lang/rust/issues/12859
build x86_64
build x86_64