meson: Map host_system android to linux
authorPeter Eisentraut <peter@eisentraut.org>
Tue, 23 Jan 2024 19:07:05 +0000 (20:07 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Tue, 23 Jan 2024 19:07:05 +0000 (20:07 +0100)
This appears to be what is missing to support builds on Android (with
meson).

Author: Andres Freund <andres@anarazel.de>
Discussion: https://www.postgresql.org/message-id/flat/CAC7zN94TdsHhY88XkroJzSMx7E%3DBQpV9LKKjNSEnTM04ihoWCA%40mail.gmail.com

meson.build

index a0c0914b509539b202f228f3c73a3833087776ca..b22828479bc24b9b5cb51754279de2ff951e98e8 100644 (file)
@@ -184,6 +184,10 @@ sema_kind = 'sysv'
 if host_system == 'dragonfly'
   # apparently the most similar
   host_system = 'netbsd'
+elif host_system == 'android'
+  # while android isn't quite a normal linux, it seems close enough
+  # for our purposes so far
+  host_system = 'linux'
 endif
 
 # meson's system names don't quite map to our "traditional" names. In some