diff options
author | wiz <wiz> | 2004-11-05 21:30:44 +0000 |
---|---|---|
committer | wiz <wiz> | 2004-11-05 21:30:44 +0000 |
commit | 5ac66dafa5dbb96a73db65eb749682b81896d98d (patch) | |
tree | 6a6918d4a3bb1d680f88ae579b22173be9970d61 /audio/libvisual/patches | |
parent | 697de521a4eec446633294c3e32a7b1b51432f57 (diff) | |
download | pkgsrc-5ac66dafa5dbb96a73db65eb749682b81896d98d.tar.gz |
Better version of the patch.
Diffstat (limited to 'audio/libvisual/patches')
-rw-r--r-- | audio/libvisual/patches/patch-ab | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/audio/libvisual/patches/patch-ab b/audio/libvisual/patches/patch-ab index 3ce9e2ac760..4b94cc251da 100644 --- a/audio/libvisual/patches/patch-ab +++ b/audio/libvisual/patches/patch-ab @@ -1,13 +1,20 @@ -$NetBSD: patch-ab,v 1.1.1.1 2004/11/05 20:55:48 wiz Exp $ +$NetBSD: patch-ab,v 1.2 2004/11/05 21:30:44 wiz Exp $ --- libvisual/lv_mem.h.orig 2004-09-06 17:10:52.000000000 +0200 +++ libvisual/lv_mem.h -@@ -8,7 +8,7 @@ extern "C" { +@@ -7,11 +7,11 @@ + extern "C" { #endif /* __cplusplus */ - #if defined(__GNUC__) && !defined(VISUAL_OS_WIN32) --void *visual_mem_malloc0 (visual_size_t nbytes) __attribute_malloc__; -+void *visual_mem_malloc0 (visual_size_t nbytes); - #else - void *visual_mem_malloc0 (visual_size_t nbytes); - #endif /* __GNUC__ */ +-#if defined(__GNUC__) && !defined(VISUAL_OS_WIN32) ++#ifndef __attribute_malloc__ ++#define __attribute_malloc__ ++#endif ++ + void *visual_mem_malloc0 (visual_size_t nbytes) __attribute_malloc__; +-#else +-void *visual_mem_malloc0 (visual_size_t nbytes); +-#endif /* __GNUC__ */ + + int visual_mem_free (void *ptr); + |