Skip to content

Commit 382f2fc

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 5df5014 commit 382f2fc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,14 @@ install_pcp() {
108108
(
109109
cd pcp
110110
# TODO TOREMOVE when not needed
111-
sed "/int gettimeofday/i\\
111+
if is_win; then
112+
git checkout 46341d6
113+
sed "/int gettimeofday/i\\
112114
struct timezone;\\
113115
struct timeval;\\
114116
" libpcp/src/windows/pcp_gettimeofday.h > fixed
115-
mv fixed libpcp/src/windows/pcp_gettimeofday.h
117+
mv fixed libpcp/src/windows/pcp_gettimeofday.h
118+
fi
116119

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

0 commit comments

Comments
 (0)