summaryrefslogtreecommitdiff
path: root/usr/src/head/stdlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/head/stdlib.h')
-rw-r--r--usr/src/head/stdlib.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/src/head/stdlib.h b/usr/src/head/stdlib.h
index 4aaee3ca30..a9b55e5acb 100644
--- a/usr/src/head/stdlib.h
+++ b/usr/src/head/stdlib.h
@@ -260,6 +260,17 @@ extern char *ulltostr(unsigned long long, char *);
#endif /* defined(__EXTENSIONS__) || !defined(_STRICT_STDC) ... */
+/* OpenBSD compatibility functions */
+#if !defined(_STRICT_SYMBOLS)
+
+#include <inttypes.h>
+extern uint32_t arc4random(void);
+extern void arc4random_buf(void *, size_t);
+extern uint32_t arc4random_uniform(uint32_t);
+
+#endif /* !_STRICT_SYBMOLS */
+
+
#ifdef __cplusplus
}
#endif