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.

19 lines
304 B

  1. /*
  2. * Public domain
  3. * sys/mman.h compatibility shim
  4. */
  5. #include_next <sys/mman.h>
  6. #ifndef LIBCRYPTOCOMPAT_MMAN_H
  7. #define LIBCRYPTOCOMPAT_MMAN_H
  8. #ifndef MAP_ANON
  9. #ifdef MAP_ANONYMOUS
  10. #define MAP_ANON MAP_ANONYMOUS
  11. #else
  12. #error "System does not support mapping anonymous pages?"
  13. #endif
  14. #endif
  15. #endif