Skip to content

Commit

Permalink
Merge pull request #100 from doozMen/main
Browse files Browse the repository at this point in the history
fix: Build on linux
  • Loading branch information
hmlongco authored Apr 14, 2023
2 parents 9828db9 + 872db8c commit 1276137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Factory/Factory/Globals.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ internal final class RecursiveLock {
init() {
mutexAttr = UnsafeMutablePointer<pthread_mutexattr_t>.allocate(capacity: 1)
pthread_mutexattr_init(mutexAttr)
pthread_mutexattr_settype(mutexAttr, PTHREAD_MUTEX_RECURSIVE)
pthread_mutexattr_settype(mutexAttr, Int32(PTHREAD_MUTEX_RECURSIVE))
mutex = UnsafeMutablePointer<pthread_mutex_t>.allocate(capacity: 1)
pthread_mutex_init(mutex, mutexAttr)
}
Expand Down

0 comments on commit 1276137

Please sign in to comment.