Author: cem Date: Mon Dec 24 19:37:10 2018 New Revision: 342398 URL: https://svnweb.freebsd.org/changeset/base/342398
Log: Enable sys/random.h #include from C++ And bump __FreeBSD_version, just in case. PR: 234180 Submitted by: Ralf van der Enden <tremere AT cainites.net> MFC after: 5 days Modified: head/sys/sys/param.h head/sys/sys/random.h Modified: head/sys/sys/param.h ============================================================================== --- head/sys/sys/param.h Mon Dec 24 16:36:39 2018 (r342397) +++ head/sys/sys/param.h Mon Dec 24 19:37:10 2018 (r342398) @@ -60,7 +60,7 @@ * in the range 5 to 9. */ #undef __FreeBSD_version -#define __FreeBSD_version 1300005 /* Master, propagated to newvers */ +#define __FreeBSD_version 1300006 /* Master, propagated to newvers */ /* * __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD, Modified: head/sys/sys/random.h ============================================================================== --- head/sys/sys/random.h Mon Dec 24 16:36:39 2018 (r342397) +++ head/sys/sys/random.h Mon Dec 24 19:37:10 2018 (r342398) @@ -153,6 +153,9 @@ void random_harvest_deregister_source(enum random_entr #define GRND_NONBLOCK 0x1 #define GRND_RANDOM 0x2 + +__BEGIN_DECLS ssize_t getrandom(void *buf, size_t buflen, unsigned int flags); +__END_DECLS #endif /* _SYS_RANDOM_H_ */ _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"