CI PCP Win: most of incompat is now fixed upstream

Most of the incompatibilities, which were patched, have already been
fixed in upstream.

just forward decl of struct timezone/timeval is still needed
This commit is contained in:
Martin Pulec
2025-03-18 15:23:07 +01:00
parent c248e53752
commit 55eb31a840

View File

@@ -57,6 +57,13 @@ install_pcp() {
git clone https://github.com/libpcp/pcp.git
(
cd pcp
# TODO TOREMOVE when not needed
sed "/int gettimeofday/i\\
struct timezone;\\
struct timeval;\\
" libpcp/src/windows/pcp_gettimeofday.h > fixed
mv fixed libpcp/src/windows/pcp_gettimeofday.h
./autogen.sh || true # autogen exits with 1
CFLAGS=-fPIC ./configure --disable-shared
make -j "$(nproc)"