Skip to content

Commit 76dcda8

Browse files
committed
CI PCP: fix another breakage [Win]
The development in PCP seem to be very turbulent these days and it breaks Win builds often so pin a commit in Windows CI until the situation calms down a bit.
1 parent 55eb31a commit 76dcda8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/scripts/install-common-deps.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,14 @@ install_pcp() {
5858
(
5959
cd pcp
6060
# TODO TOREMOVE when not needed
61-
sed "/int gettimeofday/i\\
61+
if is_win; then
62+
git checkout 46341d6
63+
sed "/int gettimeofday/i\\
6264
struct timezone;\\
6365
struct timeval;\\
6466
" libpcp/src/windows/pcp_gettimeofday.h > fixed
65-
mv fixed libpcp/src/windows/pcp_gettimeofday.h
67+
mv fixed libpcp/src/windows/pcp_gettimeofday.h
68+
fi
6669

6770
./autogen.sh || true # autogen exits with 1
6871
CFLAGS=-fPIC ./configure --disable-shared

0 commit comments

Comments
 (0)