Module Name: src Committed By: christos Date: Wed Nov 16 19:38:08 UTC 2022
Modified Files: src/lib/libc/time: private.h Log Message: PR/57083: Jiaxun Yang: Fix build on MacOS/X which has <sys/random.h> but no getrandom(3). To generate a diff of this commit: cvs rdiff -u -r1.61 -r1.62 src/lib/libc/time/private.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/time/private.h diff -u src/lib/libc/time/private.h:1.61 src/lib/libc/time/private.h:1.62 --- src/lib/libc/time/private.h:1.61 Sat Oct 29 09:55:50 2022 +++ src/lib/libc/time/private.h Wed Nov 16 14:38:08 2022 @@ -1,6 +1,6 @@ /* Private header for tzdb code. */ -/* $NetBSD: private.h,v 1.61 2022/10/29 13:55:50 christos Exp $ */ +/* $NetBSD: private.h,v 1.62 2022/11/16 19:38:08 christos Exp $ */ #ifndef PRIVATE_H #define PRIVATE_H @@ -75,7 +75,7 @@ # define HAVE_GENERIC (201112 <= __STDC_VERSION__) #endif -#if !defined HAVE_GETRANDOM && defined __has_include +#if !defined HAVE_GETRANDOM && !defined __APPLE__ && defined __has_include # if __has_include(<sys/random.h>) # define HAVE_GETRANDOM true # else