Portable build framework for OpenNTPD
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
450 B

  1. #ifndef LIBCRYPTOCOMPAT_ARC4RANDOM_H
  2. #define LIBCRYPTOCOMPAT_ARC4RANDOM_H
  3. #include <sys/param.h>
  4. #if defined(__FreeBSD__)
  5. #include "arc4random_freebsd.h"
  6. #elif defined(__linux__)
  7. #include "arc4random_linux.h"
  8. #elif defined(__APPLE__)
  9. #include "arc4random_osx.h"
  10. #elif defined(__sun)
  11. #include "arc4random_solaris.h"
  12. #elif defined(_WIN32)
  13. #include "arc4random_win.h"
  14. #else
  15. #error "No arc4random hooks defined for this platform."
  16. #endif
  17. #endif