Skip to content

Fix pthread_t initialization issues in testThreads.c and libxml2 - #88

Open
SoftwareRat wants to merge 3 commits into
ps3dev:masterfrom
SoftwareRat:master
Open

Fix pthread_t initialization issues in testThreads.c and libxml2#88
SoftwareRat wants to merge 3 commits into
ps3dev:masterfrom
SoftwareRat:master

Conversation

@SoftwareRat

Copy link
Copy Markdown

This pull request addresses a compatibility issue with pthread_t initialization in libxml2 for modern toolchains. The main change ensures that thread IDs are properly zero-initialized, and the patch is now applied during the build process.

Thread initialization fix

  • Updated patches/libxml2-2.7.8-pthread.patch to replace the assignment of (pthread_t) -1 with memset to zero-initialize pthread_t variables, improving compatibility with modern compilers.

Build script update

  • Modified scripts/012-libxml2-2.7.8.sh to apply the pthread patch automatically during the build, ensuring the fix is consistently used.

Added a patch for pthread_t issue in testThreads.c.
Replaced initialization of tid array with memset to ensure proper memory clearing.
Comment thread patches/libxml2-2.7.8-pthread.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants