summaryrefslogtreecommitdiffstats
path: root/media/libogg/solaris-types.patch
diff options
context:
space:
mode:
Diffstat (limited to 'media/libogg/solaris-types.patch')
-rw-r--r--media/libogg/solaris-types.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/media/libogg/solaris-types.patch b/media/libogg/solaris-types.patch
new file mode 100644
index 0000000000..845a1ec78c
--- /dev/null
+++ b/media/libogg/solaris-types.patch
@@ -0,0 +1,22 @@
+Index: include/ogg/os_types.h
+===================================================================
+--- include/ogg/os_types.h (revision 18100)
++++ include/ogg/os_types.h (working copy)
+@@ -75,6 +75,16 @@
+ typedef uint32_t ogg_uint32_t;
+ typedef int64_t ogg_int64_t;
+
++#elif defined(__sun__)
++
++ /* Solaris and derivatives */
++# include <inttypes.h>
++ typedef int16_t ogg_int16_t;
++ typedef uint16_t ogg_uint16_t;
++ typedef int32_t ogg_int32_t;
++ typedef uint32_t ogg_uint32_t;
++ typedef int64_t ogg_int64_t;
++
+ #elif defined(__HAIKU__)
+
+ /* Haiku */
+