diff options
author | Remi Collet <fedora@famillecollet.com> | 2010-07-28 10:39:46 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2010-07-28 10:39:46 +0200 |
commit | 8b8c4b4231bf55eac3a0fbb4d6201f3d582dd684 (patch) | |
tree | 42aa47762193792d059d014f31ce10c1d5953b38 /firefox4-jemalloc.patch | |
parent | e68538cc7dfe238a3cf6b43ded8cb6a2832bc5fa (diff) |
First Firefox 4.0 work
Diffstat (limited to 'firefox4-jemalloc.patch')
-rw-r--r-- | firefox4-jemalloc.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/firefox4-jemalloc.patch b/firefox4-jemalloc.patch new file mode 100644 index 0000000..f11da2b --- /dev/null +++ b/firefox4-jemalloc.patch @@ -0,0 +1,22 @@ +diff -up mozilla-central/memory/jemalloc/jemalloc.h.jemalloc mozilla-central/memory/jemalloc/jemalloc.h +--- mozilla-central/memory/jemalloc/jemalloc.h.jemalloc 2010-07-21 02:52:33.000000000 +0200 ++++ mozilla-central/memory/jemalloc/jemalloc.h 2010-07-28 09:10:06.569525680 +0200 +@@ -42,12 +42,12 @@ extern const char *_malloc_options; + + /* Darwin and Linux already have memory allocation functions */ + #if (!defined(MOZ_MEMORY_DARWIN) && !defined(MOZ_MEMORY_LINUX)) +-void *malloc(size_t size); +-void *valloc(size_t size); +-void *calloc(size_t num, size_t size); +-void *realloc(void *ptr, size_t size); +-void free(void *ptr); +-int posix_memalign(void **memptr, size_t alignment, size_t size); ++void *malloc(size_t size) __THROW __attribute_malloc__ __wur; ++void *valloc(size_t size) __THROW __attribute_malloc__ __wur; ++void *calloc(size_t num, size_t size) __THROW __attribute_malloc__ __wur; ++void *realloc(void *ptr, size_t size) __THROW __attribute_malloc__ __wur; ++void free(void *ptr) __THROW __attribute_malloc__ __wur; ++int posix_memalign(void **memptr, size_t alignment, size_t size) __THROW __attribute_malloc__ __wur; + #endif /* MOZ_MEMORY_DARWIN, MOZ_MEMORY_LINUX */ + + #if defined(MOZ_MEMORY_ANDROID) || defined(WRAP_MALLOC) |