Module Name: src
Committed By: jakllsch
Date: Thu Nov 17 17:35:25 UTC 2022
Modified Files:
src/lib/libc/time: private.h
Log Message:
Simply set HAVE_GETRANDOM to false on __APPLE__.
Addresses PR 57083.
To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 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.62 src/lib/libc/time/private.h:1.63
--- src/lib/libc/time/private.h:1.62 Wed Nov 16 19:38:08 2022
+++ src/lib/libc/time/private.h Thu Nov 17 17:35:25 2022
@@ -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