diff options
author | Alexander Martinz <eviscerationls@gmail.com> | 2016-11-25 17:06:10 +0100 |
---|---|---|
committer | Alexander Martinz <eviscerationls@gmail.com> | 2016-11-25 17:06:10 +0100 |
commit | d895e392df9d44c7e5ccabd90e5fa61eaa17da57 (patch) | |
tree | b0e2d7aedd4ed0a53aa3bf0348f7de5cbd0fdd9e /lib | |
parent | 0d1874710ed7609fa1c6b275f0f61a3b1389095e (diff) | |
download | android_external_f2fs-tools-d895e392df9d44c7e5ccabd90e5fa61eaa17da57.tar.gz android_external_f2fs-tools-d895e392df9d44c7e5ccabd90e5fa61eaa17da57.tar.bz2 android_external_f2fs-tools-d895e392df9d44c7e5ccabd90e5fa61eaa17da57.zip |
f2fs-tools: hack headers to unbreak darwin buildstaging/cm-14.1-cafrebasecm-14.1_prerebasecm-14.1
* headers taken from FreeBSD
Change-Id: I1f09a9def520e26ecd8e309b7dd85b72cf789725
Signed-off-by: Alexander Martinz <eviscerationls@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/zbc.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -23,11 +23,18 @@ #include <errno.h> #include <fcntl.h> #include <inttypes.h> +#ifdef __linux__ #include <linux/types.h> +#endif #include <sys/types.h> #include <sys/ioctl.h> +#ifdef __linux__ #include <scsi/scsi.h> #include <scsi/sg.h> +#else +#include "scsi/scsi.h" +#include "scsi/sg.h" +#endif #define zbc_error(format, args...) \ fprintf(stderr, "[ERROR] " format, ##args) |