mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-04 22:00:19 -05:00
Disables special device support if not in Linux.
This fixes build issues in other OS.
This commit is contained in:
parent
08c7a23774
commit
04965646d3
3 changed files with 80 additions and 52 deletions
|
|
@ -18,6 +18,10 @@
|
|||
#ifndef __UNIX_H
|
||||
#define __UNIX_H
|
||||
|
||||
#ifdef __linux__
|
||||
#define HAVE_LINUX_DEVICE 1 /**< In Linux enables special device support. */
|
||||
#endif
|
||||
|
||||
#define O_BINARY 0 /**< Not used in Unix. */
|
||||
#define O_SEQUENTIAL 0 /**< In Unix posix_fadvise() shall be used. */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue