media/libogg/solaris-types.patch
author Ralph Giles <giles@mozilla.com>
Tue, 11 Oct 2011 13:50:38 +1300
changeset 78530 df9d305be41206fc7c2549bdd105c1f04f39a9d9
permissions -rw-r--r--
Bug 677581 - Update libogg to upstream svn r18096. r=kinetik This is one revision ahead of the 1.3.0, after some whitespace fixes to the documentation. Since the last update, the major changes are do documentation, the addition of the ogg_stream_*_fill() calls which are important for controlling overhead and latency with newer codecs like theora and opus. The way configure generates config_types.h has also changed, making it more necessary to have platform-specific type definitions in os_types.h. The patch for Solaris support has been updated to support this.

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 */