~mozillateam/firefox/firefox-beta.quantal

« back to all changes in this revision

Viewing changes to debian/patches/fix-missing-include.patch

  • Committer: Chris Coulson
  • Date: 2013-12-06 14:11:23 UTC
  • Revision ID: chris.coulson@canonical.com-20131206141123-2yrih4os6ibm80y3
* Backport patch from Aurora to add a missing include to BufferUnrotate.cpp
  - add debian/patches/fix-missing-include.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# HG changeset patch
 
2
# User Steve Singer <steve@ssinger.info>
 
3
# Date 1382542740 -3600
 
4
# Node ID 0787526e0ed6c7d1c5cdb27daedfa2084589d114
 
5
# Parent  23eb32b0f555df349cc64f0b58e0e64a0a6d4c13
 
6
Bug 929439 - Include string.h for memcpy. r=bgirard
 
7
 
 
8
diff --git a/gfx/layers/BufferUnrotate.cpp b/gfx/layers/BufferUnrotate.cpp
 
9
--- a/gfx/layers/BufferUnrotate.cpp
 
10
+++ b/gfx/layers/BufferUnrotate.cpp
 
11
@@ -3,16 +3,17 @@
 
12
  * License, v. 2.0. If a copy of the MPL was not distributed with this
 
13
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
14
 
 
15
 #include <algorithm> // min & max
 
16
 #include <cstdlib>
 
17
 #include <stdint.h>
 
18
 #include <stdio.h>
 
19
 #include <stdlib.h>
 
20
+#include <string.h>
 
21
 
 
22
 void BufferUnrotate(uint8_t* aBuffer, int aByteWidth, int aHeight,
 
23
                     int aByteStride, int aXBoundary, int aYBoundary)
 
24
 {
 
25
   if (aXBoundary != 0) {
 
26
     uint8_t* line = new uint8_t[aByteWidth];
 
27
     uint32_t smallStart = 0;
 
28
     uint32_t smallLen = aXBoundary;