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.

98 lines
1.8 KiB

  1. /* os.h
  2. Operating system specific libburn definitions and declarations.
  3. The macros defined here are used by libburn modules in order to
  4. avoid own system dependent case distinctions.
  5. Copyright (C) 2009 - 2016 Thomas Schmitt <scdbackup@gmx.net>,
  6. provided under GPLv2+
  7. */
  8. #ifndef BURN_OS_H_INCLUDED
  9. #define BURN_OS_H_INCLUDED 1
  10. /*
  11. Operating system case distinction
  12. */
  13. #ifdef Libburn_use_sg_dummY
  14. /* --------- Any other system. With dummy MMC transport sg-dummy.c --------- */
  15. #include "os-dummy.h"
  16. #else
  17. #ifdef Libburn_use_libcdiO
  18. /* -------------------------- X/Open with GNU libcdio ---------------------- */
  19. #include "os-libcdio.h"
  20. #else
  21. #ifdef __NetBSD__
  22. /* -------------------------- NetBSD with SCIOCCOMMAND --------------------- */
  23. #include "os-netbsd.h"
  24. #else
  25. #ifdef __OpenBSD__
  26. /* -------------------------- OpenBSD with SCIOCCOMMAND -------------------- */
  27. #include "os-netbsd.h"
  28. #else
  29. #ifdef __FreeBSD__
  30. /* ----------------------------- FreeBSD with CAM -------------------------- */
  31. #include "os-freebsd.h"
  32. #else
  33. #ifdef __FreeBSD_kernel__
  34. /* ----------------------- FreeBSD with CAM under Debian ------------------- */
  35. #include "os-freebsd.h"
  36. #else
  37. #ifdef __linux
  38. /* ------- Linux kernels 2.4 and 2.6 with GNU/Linux SCSI Generic (sg) ------ */
  39. #include "os-linux.h"
  40. #else
  41. #ifdef __sun
  42. /* ------- Solaris (e.g. SunOS 5.11) with uscsi ------ */
  43. #include "os-solaris.h"
  44. #else
  45. /* --------- Any other system. With dummy MMC transport sg-dummy.c --------- */
  46. #include "os-dummy.h"
  47. #endif /* ! __sun*/
  48. #endif /* ! __linux */
  49. #endif /* ! __FreeBSD__kernel__ */
  50. #endif /* ! __FreeBSD__ */
  51. #endif /* ! __OpenBSD__ */
  52. #endif /* ! __NetBSD__ */
  53. #endif /* ! Libburn_use_libcdiO */
  54. #endif /* ! Libburn_use_sg_dummY */
  55. #endif /* ! BURN_OS_H_INCLUDED */