Skip to content

Commit 55eb31a

Browse files
committed
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
1 parent c248e53 commit 55eb31a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ install_pcp() {
5757
git clone https://github.com/libpcp/pcp.git
5858
(
5959
cd pcp
60+
# TODO TOREMOVE when not needed
61+
sed "/int gettimeofday/i\\
62+
struct timezone;\\
63+
struct timeval;\\
64+
" libpcp/src/windows/pcp_gettimeofday.h > fixed
65+
mv fixed libpcp/src/windows/pcp_gettimeofday.h
66+
6067
./autogen.sh || true # autogen exits with 1
6168
CFLAGS=-fPIC ./configure --disable-shared
6269
make -j "$(nproc)"

0 commit comments

Comments
 (0)