Index: vendor/libbase/include/android-base/endian.h
--- vendor/libbase/include/android-base/endian.h.orig
+++ vendor/libbase/include/android-base/endian.h
@@ -25,6 +25,11 @@
 
 #include <sys/endian.h>
 
+#elif defined(__OpenBSD__)
+#include <sys/endian.h>
+#define htonq(x) htobe64(x)
+#define ntohq(x) be64toh(x)
+
 #elif defined(__GLIBC__) || defined(ANDROID_HOST_MUSL) || defined(__linux__)
 
 /* glibc and musl's <endian.h> are like bionic's <sys/endian.h>. */
