From 55eb31a840eabb855e09f393f49bbab6a264571b Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 18 Mar 2025 15:23:07 +0100 Subject: [PATCH] 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 --- .github/scripts/install-common-deps.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/scripts/install-common-deps.sh b/.github/scripts/install-common-deps.sh index 62ccc05f0..a8e0b5cbc 100755 --- a/.github/scripts/install-common-deps.sh +++ b/.github/scripts/install-common-deps.sh @@ -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)"