2006-11-16 11:17:55 +00:00
|
|
|
|
|
|
|
/* os.h
|
|
|
|
Operating system specific libburn definitions and declarations.
|
|
|
|
The macros defined here are used by libburn modules in order to
|
|
|
|
avoid own system dependent case distinctions.
|
2010-02-12 21:26:46 +00:00
|
|
|
Copyright (C) 2009 Thomas Schmitt <scdbackup@gmx.net>, provided under GPLv2+
|
2006-11-16 11:17:55 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BURN_OS_H_INCLUDED
|
|
|
|
#define BURN_OS_H_INCLUDED 1
|
|
|
|
|
|
|
|
/*
|
|
|
|
Operating system case distinction
|
|
|
|
*/
|
|
|
|
|
2009-12-19 14:34:48 +00:00
|
|
|
|
2010-06-07 17:30:54 +00:00
|
|
|
#ifdef Libburn_use_sg_dummY
|
|
|
|
|
|
|
|
|
|
|
|
/* --------- Any other system. With dummy MMC transport sg-dummy.c --------- */
|
|
|
|
#include "os-dummy.h"
|
|
|
|
|
|
|
|
|
|
|
|
#else
|
2009-12-19 14:34:48 +00:00
|
|
|
#ifdef Libburn_use_libcdiO
|
|
|
|
|
|
|
|
|
|
|
|
/* -------------------------- X/Open with GNU libcdio ---------------------- */
|
|
|
|
#include "os-libcdio.h"
|
|
|
|
|
|
|
|
|
|
|
|
#else
|
2006-11-16 11:17:55 +00:00
|
|
|
#ifdef __FreeBSD__
|
|
|
|
|
|
|
|
|
|
|
|
/* ----------------------------- FreeBSD with CAM -------------------------- */
|
|
|
|
#include "os-freebsd.h"
|
|
|
|
|
|
|
|
|
2009-12-29 13:31:56 +00:00
|
|
|
#else
|
|
|
|
#ifdef __FreeBSD_kernel__
|
|
|
|
|
|
|
|
|
|
|
|
/* ----------------------- FreeBSD with CAM under Debian ------------------- */
|
|
|
|
#include "os-freebsd.h"
|
|
|
|
|
|
|
|
|
2009-03-02 17:01:21 +00:00
|
|
|
#else
|
|
|
|
#ifdef __linux
|
2006-11-16 11:17:55 +00:00
|
|
|
|
|
|
|
|
2010-02-12 21:26:46 +00:00
|
|
|
/* ------- Linux kernels 2.4 and 2.6 with GNU/Linux SCSI Generic (sg) ------ */
|
2006-11-16 11:17:55 +00:00
|
|
|
#include "os-linux.h"
|
|
|
|
|
|
|
|
|
2010-06-07 17:30:54 +00:00
|
|
|
#else
|
|
|
|
#ifdef __sun
|
|
|
|
|
|
|
|
|
|
|
|
/* ------- Solaris (e.g. SunOS 5.11) with uscsi ------ */
|
|
|
|
#include "os-solaris.h"
|
|
|
|
|
|
|
|
|
2009-03-02 17:01:21 +00:00
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
|
|
/* --------- Any other system. With dummy MMC transport sg-dummy.c --------- */
|
|
|
|
#include "os-dummy.h"
|
|
|
|
|
|
|
|
|
2010-06-07 17:30:54 +00:00
|
|
|
#endif /* ! __sun*/
|
2009-03-02 17:01:21 +00:00
|
|
|
#endif /* ! __linux */
|
2009-12-29 13:31:56 +00:00
|
|
|
#endif /* ! __FreeBSD__kernel__ */
|
2009-03-02 17:01:21 +00:00
|
|
|
#endif /* ! __FreeBSD__ */
|
2009-12-19 14:34:48 +00:00
|
|
|
#endif /* ! Libburn_use_libcdiO */
|
2010-06-07 17:30:54 +00:00
|
|
|
#endif /* ! Libburn_use_sg_dummY */
|
2006-11-16 11:17:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* ! BURN_OS_H_INCLUDED */
|
|
|
|
|