diff --git a/ext/random/config.m4 b/ext/random/config.m4 index 7bd432c9110c2..a8e6d5a568991 100644 --- a/ext/random/config.m4 +++ b/ext/random/config.m4 @@ -7,7 +7,12 @@ dnl dnl Check for CCRandomGenerateBytes dnl header absent in previous macOs releases dnl -AC_CHECK_HEADERS([CommonCrypto/CommonRandom.h]) +AC_CHECK_HEADERS([CommonCrypto/CommonRandom.h], [], [], +[ + #include + #include + #include +]) dnl dnl Setup extension diff --git a/ext/standard/config.m4 b/ext/standard/config.m4 index fb9d8e5415871..8e77e75134c9e 100644 --- a/ext/standard/config.m4 +++ b/ext/standard/config.m4 @@ -407,7 +407,12 @@ dnl dnl Check for CCRandomGenerateBytes dnl header absent in previous macOs releases dnl -AC_CHECK_HEADERS([CommonCrypto/CommonRandom.h]) +AC_CHECK_HEADERS([CommonCrypto/CommonRandom.h], [], [], +[ + #include + #include + #include +]) dnl dnl Check for argon2