diff --git a/.github/workflows/terminal.yml b/.github/workflows/terminal.yml index 09e6813f..e21250d3 100644 --- a/.github/workflows/terminal.yml +++ b/.github/workflows/terminal.yml @@ -29,7 +29,7 @@ jobs: copyback: false prepare: | PKG_PATH="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r | cut -d_ -f1)/All" /usr/sbin/pkg_add pkgin - pkgin -y in premake5 gmake libpcap-1.10.4 + pkgin -y in premake5 gmake libpcap run: | git config --global --add safe.directory $(pwd) premake5 --test gmake diff --git a/modules/gdb/gdb.c b/modules/gdb/gdb.c index 4ce465c9..04f5aaad 100644 --- a/modules/gdb/gdb.c +++ b/modules/gdb/gdb.c @@ -28,6 +28,7 @@ #include #include #define close closesocket + #define sleep Sleep #else #include #include @@ -186,7 +187,7 @@ static bool accept_client(struct gdb *dbg, vxt_system *sys) { if ((dbg->state.client = accept(dbg->server, (struct sockaddr*)&addr, &ln)) == -1) return false; - int one = 1; + const int one = 1; setsockopt(dbg->state.client, IPPROTO_TCP, TCP_NODELAY, &one, sizeof(one)); dbg->state.num_bps = 0;