]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
build: Do not provide prototypes for arc4random() on Solaris
authorGuillem Jover <guillem@hadrons.org>
Thu, 27 Jul 2023 11:51:36 +0000 (13:51 +0200)
committerGuillem Jover <guillem@hadrons.org>
Sat, 29 Jul 2023 18:11:53 +0000 (20:11 +0200)
These functions are provided by the system.

include/bsd/stdlib.h

index 51c58e8c826a6145a31f69e5b8b43017e31ad1bd..e404bdb22cb00451f7f540e6c42e5b1daf9a40b7 100644 (file)
@@ -51,7 +51,7 @@
 #include <stdint.h>
 
 __BEGIN_DECLS
-#if !defined(__APPLE__)
+#if !defined(__APPLE__) && !defined(__sun)
 #if !defined(__GLIBC__) || \
     !__GLIBC_PREREQ(2, 36) || \
     !defined(_DEFAULT_SOURCE)