upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/makefile.mingw
diff options
context:
space:
mode:
authorBitflash <btf01@proton.me>2026-07-31 17:40:58 -0300
committerGitHub <noreply@github.com>2026-07-31 17:40:58 -0300
commitd5bcd347cd8d156e3a6d4526fd2470741194a64a (patch)
tree41e0820126fb7a0f1daebc8130054c64a00b9faf /src/makefile.mingw
parent795e51612bd5b17dbbf8f0cbea64ee4c874b5a33 (diff)
net: a node could only ever watch 63 peers (#78)
Diffstat (limited to 'src/makefile.mingw')
-rw-r--r--src/makefile.mingw7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/makefile.mingw b/src/makefile.mingw
index 01f7702..ae533ef 100644
--- a/src/makefile.mingw
+++ b/src/makefile.mingw
@@ -14,8 +14,13 @@ WARNFLAGS = -Wformat -Werror=format \
14 -Wno-deprecated-declarations -Wno-write-strings \ 14 -Wno-deprecated-declarations -Wno-write-strings \
15 -Wno-narrowing -Wno-unused-result 15 -Wno-narrowing -Wno-unused-result
16 16
17# FD_SETSIZE has to be defined before winsock2.h and it has to be the same
18# number in every translation unit -- fd_set carries an array of that length,
19# so disagreeing about it means disagreeing about sizeof(fd_set). That is why
20# it lives here as a -D and not as a #define in a header. Windows defaults to
21# 64, which capped this node at 63 watchable peers no matter how many it had.
17CXXFLAGS = -std=gnu++14 -O2 $(WARNFLAGS) -fpermissive -pthread \ 22CXXFLAGS = -std=gnu++14 -O2 $(WARNFLAGS) -fpermissive -pthread \
18 -DWIN32 -DNOPCH \ 23 -DWIN32 -DNOPCH -DFD_SETSIZE=1024 \
19 -DSECP256K1_STATIC \ 24 -DSECP256K1_STATIC \
20 -I$(DEPS)/include -I$(RANDOMX)/src \ 25 -I$(DEPS)/include -I$(RANDOMX)/src \
21 -I$(DEPS)/include/nlohmann \ 26 -I$(DEPS)/include/nlohmann \