Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/time PR/57083: Jiaxun Yang: Fix build on MacOS/X wh...



details:   https://anonhg.NetBSD.org/src/rev/087af4496bef
branches:  trunk
changeset: 372339:087af4496bef
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Nov 16 19:38:08 2022 +0000

description:
PR/57083: Jiaxun Yang: Fix build on MacOS/X which has <sys/random.h> but no
getrandom(3).

diffstat:

 lib/libc/time/private.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 8ee40be2ba3d -r 087af4496bef lib/libc/time/private.h
--- a/lib/libc/time/private.h   Wed Nov 16 15:02:00 2022 +0000
+++ b/lib/libc/time/private.h   Wed Nov 16 19:38:08 2022 +0000
@@ -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



Home | Main Index | Thread Index | Old Index