- Add elf_aux_info() support for OpenBSD
  https://github.com/facebook/rocksdb/pull/12967

https://jira.mariadb.org/browse/MDEV-29875

Index: storage/rocksdb/rocksdb/CMakeLists.txt
--- storage/rocksdb/rocksdb/CMakeLists.txt.orig
+++ storage/rocksdb/rocksdb/CMakeLists.txt
@@ -618,6 +618,11 @@ if(HAVE_AUXV_GETAUXVAL)
   add_definitions(-DROCKSDB_AUXV_GETAUXVAL_PRESENT)
 endif()
 
+check_cxx_symbol_exists(elf_aux_info "sys/auxv.h" HAVE_AUXV_ELF_AUX_INFO)
+if(HAVE_AUXV_ELF_AUX_INFO)
+  add_definitions(-DROCKSDB_AUXV_ELF_AUX_INFO_PRESENT)
+endif()
+
 check_cxx_symbol_exists(F_FULLFSYNC "fcntl.h" HAVE_FULLFSYNC)
 if(HAVE_FULLFSYNC)
   add_definitions(-DHAVE_FULLFSYNC)
