From 1165083ba7752029e08fda9ae87b26e247b1ce15 Mon Sep 17 00:00:00 2001 From: martynas Date: Sun, 21 Jun 2009 13:18:59 +0000 Subject: [PATCH] oggz_off_t is off_t position is int64_t --- .../patch-content_media_video_src_nsAudioStream_cpp | 12 ++++++++++++ ...media_liboggz_include_oggz_oggz_off_t_generated_h | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 www/firefox35/patches/patch-content_media_video_src_nsAudioStream_cpp create mode 100644 www/firefox35/patches/patch-media_liboggz_include_oggz_oggz_off_t_generated_h diff --git a/www/firefox35/patches/patch-content_media_video_src_nsAudioStream_cpp b/www/firefox35/patches/patch-content_media_video_src_nsAudioStream_cpp new file mode 100644 index 00000000000..5c21aeb73b1 --- /dev/null +++ b/www/firefox35/patches/patch-content_media_video_src_nsAudioStream_cpp @@ -0,0 +1,12 @@ +$OpenBSD: patch-content_media_video_src_nsAudioStream_cpp,v 1.1 2009/06/21 13:18:59 martynas Exp $ +--- content/media/video/src/nsAudioStream.cpp.orig Wed Jun 17 07:21:42 2009 ++++ content/media/video/src/nsAudioStream.cpp Sun Jun 21 15:39:50 2009 +@@ -246,7 +246,7 @@ float nsAudioStream::GetPosition() + #if defined(XP_WIN) + positionType = SA_POSITION_WRITE_HARDWARE; + #endif +- PRInt64 position = 0; ++ int64_t position = 0; + if (sa_stream_get_position(static_cast(mAudioHandle), + positionType, &position) == SA_SUCCESS) { + return (position / float(mRate) / mChannels / sizeof(short)); diff --git a/www/firefox35/patches/patch-media_liboggz_include_oggz_oggz_off_t_generated_h b/www/firefox35/patches/patch-media_liboggz_include_oggz_oggz_off_t_generated_h new file mode 100644 index 00000000000..7854765ee4f --- /dev/null +++ b/www/firefox35/patches/patch-media_liboggz_include_oggz_oggz_off_t_generated_h @@ -0,0 +1,12 @@ +$OpenBSD: patch-media_liboggz_include_oggz_oggz_off_t_generated_h,v 1.1 2009/06/21 13:18:59 martynas Exp $ +--- media/liboggz/include/oggz/oggz_off_t_generated.h.orig Wed Jun 17 07:21:59 2009 ++++ media/liboggz/include/oggz/oggz_off_t_generated.h Sun Jun 21 15:38:45 2009 +@@ -59,7 +59,7 @@ + + #include + +-#if defined(__APPLE__) || defined(SOLARIS) ++#if defined(__APPLE__) || defined(SOLARIS) || defined(__OpenBSD__) + typedef off_t oggz_off_t; + #else + typedef loff_t oggz_off_t;