Disables special device support if not in Linux.

This fixes build issues in other OS.
This commit is contained in:
Andrea Mazzoleni 2015-01-02 22:51:10 +01:00
parent 08c7a23774
commit 04965646d3
3 changed files with 80 additions and 52 deletions

View file

@ -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. */