Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/time Simply set HAVE_GETRANDOM to false on __APPLE__.



details:   https://anonhg.NetBSD.org/src/rev/f9031f43f8f2
branches:  trunk
changeset: 372358:f9031f43f8f2
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Thu Nov 17 17:35:25 2022 +0000

description:
Simply set HAVE_GETRANDOM to false on __APPLE__.

Addresses PR 57083.

diffstat:

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

diffs (23 lines):

diff -r e5e0b4df9c5b -r f9031f43f8f2 lib/libc/time/private.h
--- a/lib/libc/time/private.h   Thu Nov 17 15:21:31 2022 +0000
+++ b/lib/libc/time/private.h   Thu Nov 17 17:35:25 2022 +0000
@@ -1,6 +1,6 @@
 /* Private header for tzdb code.  */
 
-/*     $NetBSD: private.h,v 1.62 2022/11/16 19:38:08 christos Exp $    */
+/*     $NetBSD: private.h,v 1.63 2022/11/17 17:35:25 jakllsch Exp $    */
 
 #ifndef PRIVATE_H
 #define PRIVATE_H
@@ -75,7 +75,10 @@
 # define HAVE_GENERIC (201112 <= __STDC_VERSION__)
 #endif
 
-#if !defined HAVE_GETRANDOM && !defined __APPLE__ && defined __has_include
+#if defined __APPLE__
+# define HAVE_GETRANDOM false
+#endif
+#if !defined HAVE_GETRANDOM && defined __has_include
 # if __has_include(<sys/random.h>)
 #  define HAVE_GETRANDOM true
 # else



Home | Main Index | Thread Index | Old Index