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
592 B

  1. /*
  2. * Public domain
  3. * sys/types.h compatibility shim
  4. */
  5. #include_next <sys/types.h>
  6. #ifndef LIBCOMPAT_SYS_TYPES_H
  7. #define LIBCOMPAT_SYS_TYPES_H
  8. #include <stdint.h>
  9. #ifdef __MINGW32__
  10. #include <_bsd_types.h>
  11. #endif
  12. #if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__bounded__)
  13. # define __bounded__(x, y, z)
  14. #endif
  15. /*
  16. * Define BSD-style unsigned bits types for systems that do not have them.
  17. */
  18. typedef uint8_t u_int8_t;
  19. typedef uint16_t u_int16_t;
  20. typedef uint32_t u_int32_t;
  21. typedef uint64_t u_int64_t;
  22. #ifndef BYTE_ORDER
  23. #include <machine/endian.h>
  24. #endif
  25. #endif