Fix HAVE_GETAUXVAL codepath

This commit is contained in:
Cameron Gutman 2024-01-19 19:02:07 -06:00
parent b08a04c378
commit d3d79c3224

View File

@ -94,6 +94,9 @@ endif()
check_c_source_compiles("#include <sys/auxv.h>
int main(void) { return getauxval(AT_HWCAP); }" HAVE_GETAUXVAL)
if (HAVE_GETAUXVAL)
list(APPEND MOONLIGHT_DEFINITIONS HAVE_GETAUXVAL)
endif()
if (CEC_FOUND)
list(APPEND MOONLIGHT_DEFINITIONS HAVE_LIBCEC)