os.h 588 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef _CSR_INNER_COMMON_H_
  2. #define _CSR_INNER_COMMON_H_
  3. /* import win32's setting */
  4. #ifdef WIN32
  5. #include "config.win.h"
  6. #else
  7. #include "config.h"
  8. #endif
  9. #ifdef HAVE_UNISTD_H
  10. #include <unistd.h>
  11. #endif
  12. #ifdef HAVE_FCNTL_H
  13. #include <fcntl.h>
  14. #endif
  15. #ifdef HAVE_SYS_STAT_H
  16. #include <sys/stat.h>
  17. #endif
  18. #ifdef HAVE_SYS_TYPES_H
  19. #include <sys/types.h>
  20. #endif
  21. #ifdef HAVE_SYS_PARAM_H
  22. #include <sys/param.h>
  23. #endif
  24. #ifdef __MINGW32__
  25. #undef HAVE_MMAP
  26. #endif
  27. #ifdef HAVE_MMAP
  28. #include <sys/mman.h>
  29. #endif
  30. #if !defined HAVE_MMAP && defined HAVE_WINDOWS_H
  31. #include <windows.h>
  32. #endif
  33. #endif