1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
Index: aws-crt-python/crt/s2n/utils/s2n_fork_detection.c
===================================================================
--- aws-crt-python.orig/crt/s2n/utils/s2n_fork_detection.c
+++ aws-crt-python/crt/s2n/utils/s2n_fork_detection.c
@@ -46,8 +46,8 @@ typedef __darwin_pthread_once_t pthread_
#include "utils/s2n_safety.h"
#if defined(S2N_MADVISE_SUPPORTED) && defined(MADV_WIPEONFORK)
- #if (MADV_WIPEONFORK != 18)
- #error "MADV_WIPEONFORK is not 18"
+ #if !((MADV_WIPEONFORK == 18) || (MADV_WIPEONFORK == 71))
+ #error "MADV_WIPEONFORK has strange number"
#endif
#else /* defined(S2N_MADVISE_SUPPORTED) && defined(MADV_WIPEONFORK) */
#define MADV_WIPEONFORK 18
|