pull/962/head
Jeff Becker 4 years ago
parent c4f08e5145
commit 5729d0bff5
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -92,18 +92,16 @@ set(LIB_PLATFORM_SRC
# tun
${LIBTUNTAP_SRC}
${EV_SRC}
ev/ev_libuv.cpp
)
if (WIN32)
set(LIB_PLATFORM_SRC
ev/ev_win32.cpp
${LIB_PLATFORM_SRC}
win32/win32_inet.c
win32/win32_intrnl.c
win32/win32_upoll.c)
else()
set(LIB_PLATFORM_SRC
${LIB_PLATFORM_SRC}
ev/ev_libuv.cpp)
endif(WIN32)
add_library(${PLATFORM_LIB} STATIC ${LIB_PLATFORM_SRC})

@ -105,7 +105,7 @@ win32_tun_io::do_write(void* data, size_t sz)
pkt->sz = sz;
pkt->write = true;
memset(&pkt->pkt, '\0', sizeof(pkt->pkt));
WriteFile(tunif->tun_fd, data, sz, nullptr, p & pkt->pkt);
WriteFile(tunif->tun_fd, data, sz, nullptr, &pkt->pkt);
}
// while this one is called from the event loop
@ -153,7 +153,7 @@ tun_ev_loop(void* u)
for(const auto& tun : tun_listeners)
{
EnterCriticalSection(&HandlerMtx);
logic->call_soon([tun = tun.get()]() {
logic->call_soon([tun]() {
if(tun->t->tick)
tun->t->tick(tun->t);
tun->flush_write();

@ -0,0 +1,7 @@
[16:24:37] (Channel) despair86: http://files.jrsoftware.org/is/5/innosetup-5.6.1-unicode.exe
[16:29:23] (Channel) despair86: wine [path to ISCC.exe] -DSINGLE_ARCH lokinet-win32.iss
[16:29:28] (Channel) despair86: should work
[16:30:11] (Channel) despair86: make -C win32-setup
[16:30:33] (Channel) despair86: cmake . -DCMAKE_TOOLCHAIN_FILE [options] build
[16:30:37] (Channel) despair86: make -C build
[16:30:51] (Channel) despair86: then use wine to build package
Loading…
Cancel
Save