Commit 4b6471d
CI: fix pthread_t in Thread.swift - exclude FreeBSD from canImport(Glibc)
pthread_t on FreeBSD is an opaque C pointer; _subprocess_pthread_create
takes pthread_t* which Swift imports as UnsafeMutablePointer<pthread_t?>.
Excluding FreeBSD from the canImport(Glibc) guard makes it use the #else
branch (pthread_t?) which matches macOS and the expected function type.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 0b67b0d commit 4b6471d
1 file changed
Lines changed: 16 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
130 | 132 | | |
131 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
132 | 139 | | |
133 | 140 | | |
134 | 141 | | |
| |||
0 commit comments