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)"