From 9012c502b25de94215094a4ca909e0a9e99344b1 Mon Sep 17 00:00:00 2001 From: wiz Date: Thu, 29 Mar 2012 11:40:19 +0000 Subject: Fix build with clang-3.1. --- filesystems/fuse-mp3fs/distinfo | 3 +- filesystems/fuse-mp3fs/patches/patch-src_class.h | 44 ++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 filesystems/fuse-mp3fs/patches/patch-src_class.h diff --git a/filesystems/fuse-mp3fs/distinfo b/filesystems/fuse-mp3fs/distinfo index 3ccba82fab8..cfb6edd7677 100644 --- a/filesystems/fuse-mp3fs/distinfo +++ b/filesystems/fuse-mp3fs/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.2 2009/07/17 10:43:21 wiz Exp $ +$NetBSD: distinfo,v 1.3 2012/03/29 11:40:19 wiz Exp $ SHA1 (mp3fs-0.13.tar.gz) = b246bd747a32256cb8364b7ac0cc8b7a4e1d3f74 RMD160 (mp3fs-0.13.tar.gz) = 6ad1126ee22b35fe4987dd6addbc41a25c74a508 Size (mp3fs-0.13.tar.gz) = 301642 bytes SHA1 (patch-aa) = b4554994bb9949c645ba07f43615c78004fc9895 SHA1 (patch-ab) = 9b259b045decb4556dd72eeb65e0275554a93b6f +SHA1 (patch-src_class.h) = 2a0c03c20ffce50c1270d552215edb052f3ecf50 diff --git a/filesystems/fuse-mp3fs/patches/patch-src_class.h b/filesystems/fuse-mp3fs/patches/patch-src_class.h new file mode 100644 index 00000000000..db1a7dd2f2a --- /dev/null +++ b/filesystems/fuse-mp3fs/patches/patch-src_class.h @@ -0,0 +1,44 @@ +$NetBSD: patch-src_class.h,v 1.1 2012/03/29 11:40:19 wiz Exp $ + +Fix build with clang-3.1. + +--- src/class.h.orig 2007-11-15 05:34:32.000000000 +0000 ++++ src/class.h +@@ -171,7 +171,7 @@ super.add as well. + + #define CLASS(class,super_class) \ + typedef struct class *class; \ +- inline void class ## _init(void); \ ++ void class ## _init(void); \ + void class ## _Alloc(class this); \ + extern int __ ## class ## _initialised; \ + extern struct class __ ## class; \ +@@ -209,7 +209,7 @@ super.add as well. + + #define VIRTUAL(class,superclass) \ + struct class __ ## class; \ +- inline void class ## _init(void) { \ ++ void class ## _init(void) { \ + if(!__ ## class ## _initialised) { \ + class ## _Alloc(&__ ## class); \ + __ ## class ## _initialised = 1; \ +@@ -233,7 +233,7 @@ super.add as well. + + #define VIRTUAL(class,superclass) \ + struct class __ ## class; \ +- inline void class ## _init(void) { \ ++ void class ## _init(void) { \ + if(!__ ## class ## _initialised) { \ + class ## _Alloc(&__ ## class); \ + __ ## class ## _initialised = 1; \ +@@ -348,8 +348,8 @@ struct Object { + #define GET_CLASS(name) \ + &__ ## name + +-inline void Object_init(void); +-inline void Object_Alloc(Object this); ++void Object_init(void); ++void Object_Alloc(Object this); + + extern struct Object __Object; + -- cgit v1.2.3