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.

29 lines
508 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(__NetBSD__)
  9. #include "arc4random_netbsd.h"
  10. #elif defined(__APPLE__)
  11. #include "arc4random_osx.h"
  12. #elif defined(__sun)
  13. #include "arc4random_solaris.h"
  14. #elif defined(_WIN32)
  15. #include "arc4random_win.h"
  16. #else
  17. #error "No arc4random hooks defined for this platform."
  18. #endif
  19. #endif