forked from zlib-ng/zlib-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* POWER8/9 feature checks were enabled even if the toolchain didn't support AT_HWCAP2 * Add detection if we need to include <linux/auxvec.h>
- Loading branch information
Showing
3 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
/* power_features.c - POWER feature check | ||
* Copyright (C) 2020 Matheus Castanho <[email protected]>, IBM | ||
* Copyright (C) 2021-2022 Mika T. Lindqvist <[email protected]> | ||
* Copyright (C) 2021-2024 Mika T. Lindqvist <[email protected]> | ||
* For conditions of distribution and use, see copyright notice in zlib.h | ||
*/ | ||
|
||
#ifdef HAVE_SYS_AUXV_H | ||
# include <sys/auxv.h> | ||
#endif | ||
#ifdef POWER_NEED_AUXVEC_H | ||
# include <linux/auxvec.h> | ||
#endif | ||
#ifdef __FreeBSD__ | ||
# include <machine/cpu.h> | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters