mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-24 05:40:15 +00:00
android: Avoid referencing POSIX shared memory functions
Stop trying to use POSIX shared memory functions such as `shm_open` on Android as it's unsupported and the platform libc does not have those symbols. This avoids an error such as the below when trying to use `libghostty-vt` on Android: > dlopen failed: cannot locate symbol "shm_open" referenced by [..]
This commit is contained in:
@@ -159,8 +159,9 @@ pub const LoadingImage = struct {
|
||||
t: command.Transmission,
|
||||
path: []const u8,
|
||||
) !void {
|
||||
// android does not support POSIX shared memory.
|
||||
// windows is currently unsupported, does it support shm?
|
||||
if (comptime builtin.target.os.tag == .windows) {
|
||||
if (comptime builtin.abi.isAndroid() or builtin.target.os.tag == .windows) {
|
||||
return error.UnsupportedMedium;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user