Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions patches/libxml2-2.7.8-pthread.patch
Comment thread
zeldin marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/testThreads.c b/testThreads.c
index b43cbd0..5c12894 100644
--- a/testThreads.c
+++ b/testThreads.c
@@ -107,7 +107,6 @@ main(void)

for (i = 0; i < num_threads; i++) {
results[i] = NULL;
- tid[i] = (pthread_t) -1;
}

for (i = 0; i < num_threads; i++) {
4 changes: 4 additions & 0 deletions scripts/012-libxml2-2.7.8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ echo "Unpacking ${LIBXML2}"
extract ../archives/${LIBXML2}.tar.gz
cd ${LIBXML2}

## Patch pthread_t issue for modern toolchains
echo "Patching testThreads.c..."
patch -p1 < ../../patches/${LIBXML2}-pthread.patch

## Replace config.guess and config.sub
cp ../../archives/config.guess ../../archives/config.sub .

Expand Down
Loading