From ef1e258751d98564f94120f7f188d1f234ff1b88 Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Wed, 10 May 2017 21:57:25 +0200
Subject: fix stdint.h references


diff --git a/src/FAT_fs.h b/src/FAT_fs.h
index 27b0746..6fb9413 100644
--- a/src/FAT_fs.h
+++ b/src/FAT_fs.h
@@ -66,6 +66,10 @@
 #include <sys/types.h>
 #include <iconv.h>
 
+#if defined (__HAIKU__)
+#include <stdint.h>
+#endif
+
 #include "platform.h"
 
 // Directory entry structures
diff --git a/src/clusterchain.h b/src/clusterchain.h
index deb3c17..3c68661 100644
--- a/src/clusterchain.h
+++ b/src/clusterchain.h
@@ -29,6 +29,10 @@
 
 #include <sys/types.h>
 
+#if defined (__HAIKU__)
+#include <stdint.h>
+#endif
+
 #include "platform.h"
 
 struct sClusterChain {
diff --git a/src/fileio.h b/src/fileio.h
index badd5a3..1b45234 100644
--- a/src/fileio.h
+++ b/src/fileio.h
@@ -28,6 +28,10 @@
 #include <sys/types.h>
 #include "platform.h"
 
+#if defined (__HAIKU__)
+#include <stdint.h>
+#endif
+
 int fs_seek(FILE *stream, off_t offset, int whence);
 off_t fs_read(void *ptr, u_int32_t size, u_int32_t n, FILE *stream);
 off_t fs_write(const void *ptr, u_int32_t size, u_int32_t n, FILE *stream);
diff --git a/src/natstrcmp.h b/src/natstrcmp.h
index a2f4463..f092c37 100644
--- a/src/natstrcmp.h
+++ b/src/natstrcmp.h
@@ -26,6 +26,10 @@
 
 #include <sys/types.h>
 
+#if defined (__HAIKU__)
+#include <stdint.h>
+#endif
+
 // natural order comparison
 int32_t natstrcmp(const char *str1, const char *str2);
 
diff --git a/src/stringlist.h b/src/stringlist.h
index 52943fb..c0b4082 100644
--- a/src/stringlist.h
+++ b/src/stringlist.h
@@ -28,6 +28,10 @@
 #include "platform.h"
 #include "FAT_fs.h"
 
+#if defined (__HAIKU__)
+#include <stdint.h>
+#endif
+
 struct sStringList {
 	char *str;
 	struct sStringList *next;
-- 
2.7.0

