Skip to content

Commit

Permalink
Add support for elf_aux_info() on OpenBSD
Browse files Browse the repository at this point in the history
CLA: trivial

Reviewed-by: Dmitry Belyavskiy <[email protected]>
Reviewed-by: Tom Cosgrove <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from openssl#25346)
  • Loading branch information
brad0 authored and t8m committed Sep 2, 2024
1 parent 16e7da0 commit 01f4b44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions crypto/armcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ void OPENSSL_cpuid_setup(void) __attribute__ ((constructor));
# define OSSL_IMPLEMENT_GETAUXVAL
# endif
# endif
# if defined(__FreeBSD__)
# if defined(__FreeBSD__) || defined(__OpenBSD__)
# include <sys/param.h>
# if __FreeBSD_version >= 1200000
# if (defined(__FreeBSD__) && __FreeBSD_version >= 1200000) || \
(defined(__OpenBSD__) && OpenBSD >= 202409)
# include <sys/auxv.h>
# define OSSL_IMPLEMENT_GETAUXVAL

Expand Down
5 changes: 3 additions & 2 deletions crypto/ppccap.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,10 @@ size_t OPENSSL_instrument_bus2(unsigned int *out, size_t cnt, size_t max)
# endif
#endif

#if defined(__FreeBSD__)
#if defined(__FreeBSD__) || defined(__OpenBSD__)
# include <sys/param.h>
# if __FreeBSD_version >= 1200000
# if (defined(__FreeBSD__) && __FreeBSD_version >= 1200000) || \
(defined(__OpenBSD__) && OpenBSD >= 202409)
# include <sys/auxv.h>
# define OSSL_IMPLEMENT_GETAUXVAL

Expand Down

0 comments on commit 01f4b44

Please sign in to comment.