aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAlexander Martinz <eviscerationls@gmail.com>2016-11-25 17:06:10 +0100
committerAlexander Martinz <eviscerationls@gmail.com>2016-11-25 17:06:10 +0100
commitd895e392df9d44c7e5ccabd90e5fa61eaa17da57 (patch)
treeb0e2d7aedd4ed0a53aa3bf0348f7de5cbd0fdd9e /lib
parent0d1874710ed7609fa1c6b275f0f61a3b1389095e (diff)
downloadandroid_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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/zbc.h b/lib/zbc.h
index 15692c1..7341250 100644
--- a/lib/zbc.h
+++ b/lib/zbc.h
@@ -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)