Skip to content

Commit

Permalink
Build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-jonsson committed Oct 18, 2024
1 parent 9560234 commit a476752
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/terminal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion modules/gdb/gdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <winsock2.h>
#include <ws2tcpip.h>
#define close closesocket
#define sleep Sleep
#else
#include <unistd.h>
#include <sys/socket.h>
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit a476752

Please sign in to comment.