SQLite3MultipleCiphers: `tvOS`/`watchOS` compilation errors
Trying to compile for watchOS and tvOS but keep running into the following errors related to usage of syscall
error: 'syscall' is unavailable: not available on tvOS
if (syscall(SYS_getentropy, buf, n) == 0)
^
note: 'syscall' has been explicitly marked unavailable here
int syscall(int, ...);
^
Everything’s working great though for iOS 👍
Seeing in the amalgamations that there is conditional arguments for macOS and iOS only. Would it be possible to also include tvOS and watchOS?
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 24 (14 by maintainers)
Commits related to this issue
- Fix issue #118 Check for _tvOS_ or _watchOS_ to call `getentropy` (instead of using `syscall`) — committed to utelle/SQLite3MultipleCiphers by utelle 9 months ago
- Prepare release of version 1.7.0 - Fixed issue #118 - tvOS/watchOS compilation errors. On Apple platforms the function SecRandomCopyBytes() will now be used instead of getentropy(). - Fixed issue #11... — committed to utelle/SQLite3MultipleCiphers by utelle 9 months ago
Thanks. I adjusted the autoconf build files and now it works.
Could you please test to change the code for function
entropyas follows:If that works for you please let me know.