From f9f8a8244e49b32bd9a148a347680ecb1a775c19 Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Thu, 27 Sep 2018 17:23:03 +0200
Subject: add endian.h to check correct BYTE_ORDER


diff --git a/misc.h b/misc.h
index 1ae4d2e..b62fcac 100644
--- a/misc.h
+++ b/misc.h
@@ -41,6 +41,10 @@
 #include <sys/types.h>
 #endif
 
+#if defined __HAIKU__
+#include <endian.h>
+#endif
+
 #if BYTE_ORDER==LITTLE_ENDIAN
 union magic {
   struct {
-- 
2.19.0


From 15dca17e85569ce522f2f5c3ad1636c5d938b1de Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Sun, 7 Oct 2018 09:13:25 +0200
Subject: set correct @includedir@/tremor path for pkg-config


diff --git a/Makefile.am b/Makefile.am
index 0a4bb2c..7765599 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -31,7 +31,7 @@ iseeking_example_SOURCES = iseeking_example.c
 iseeking_example_LDFLAGS = -static 
 iseeking_example_LDADD = libvorbisidec.la @OGG_LIBS@
 
-includedir = $(prefix)/include/tremor
+includedir = @includedir@/tremor
 
 include_HEADERS = ivorbiscodec.h ivorbisfile.h config_types.h
 
diff --git a/vorbisidec.pc.in b/vorbisidec.pc.in
index 56fa656..3b56ae3 100644
--- a/vorbisidec.pc.in
+++ b/vorbisidec.pc.in
@@ -3,7 +3,7 @@
 prefix=@prefix@
 exec_prefix=@exec_prefix@
 libdir=@libdir@
-includedir=@includedir@
+includedir=@includedir@/tremor
 
 Name: vorbisidec
 Description: vorbisidec is the integer Ogg Vorbis library
-- 
2.19.0

