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.

33 lines
591 B

  1. /*
  2. * stdlib.h compatibility shim
  3. * Public domain
  4. */
  5. #include_next <stdlib.h>
  6. #ifndef LIBCOMPAT_STDLIB_H
  7. #define LIBCOMPAT_STDLIB_H
  8. #include <sys/stat.h>
  9. #include <sys/time.h>
  10. #include <stdint.h>
  11. #ifndef HAVE_ARC4RANDOM_BUF
  12. uint32_t arc4random(void);
  13. uint32_t arc4random_uniform(uint32_t);
  14. #endif
  15. #ifndef HAVE_REALLOCARRAY
  16. void *reallocarray(void *, size_t, size_t);
  17. #endif
  18. #ifndef HAVE_SETPROCTITLE
  19. void setproctitle(const char *fmt, ...);
  20. #endif
  21. #ifndef HAVE_STRTONUM
  22. long long strtonum(const char *nptr, long long minval,
  23. long long maxval, const char **errstr);
  24. #endif
  25. #endif