summaryrefslogtreecommitdiff
path: root/mail/wmmail/patches
diff options
context:
space:
mode:
Diffstat (limited to 'mail/wmmail/patches')
-rw-r--r--mail/wmmail/patches/patch-src_list.h27
-rw-r--r--mail/wmmail/patches/patch-src_wmutil.c.in15
2 files changed, 42 insertions, 0 deletions
diff --git a/mail/wmmail/patches/patch-src_list.h b/mail/wmmail/patches/patch-src_list.h
new file mode 100644
index 00000000000..6380299b8da
--- /dev/null
+++ b/mail/wmmail/patches/patch-src_list.h
@@ -0,0 +1,27 @@
+$NetBSD: patch-src_list.h,v 1.1 2012/06/15 18:56:09 joerg Exp $
+
+Kill broken inline use.
+
+--- src/list.h.orig 2012-06-15 18:10:58.000000000 +0000
++++ src/list.h
+@@ -19,7 +19,6 @@ You should have received a copy of the G
+ along with GNU CC; see the file COPYING. If not, write to
+ the Free Software Foundation, 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+-
+ /* As a special exception, if you link this library with files compiled with
+ GCC to produce an executable, this does not cause the resulting executable
+ to be covered by the GNU General Public License. This exception does not
+@@ -29,11 +28,7 @@ Boston, MA 02111-1307, USA. */
+ #ifndef __LIST_H_
+ #define __LIST_H_
+
+-#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
+-# define INLINE inline
+-#else
+-# define INLINE
+-#endif
++#define INLINE
+
+ typedef struct LinkedList {
+ void *head;
diff --git a/mail/wmmail/patches/patch-src_wmutil.c.in b/mail/wmmail/patches/patch-src_wmutil.c.in
new file mode 100644
index 00000000000..3dee5a1556e
--- /dev/null
+++ b/mail/wmmail/patches/patch-src_wmutil.c.in
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_wmutil.c.in,v 1.1 2012/06/15 18:56:09 joerg Exp $
+
+Used by other source files.
+
+--- src/wmutil.c.in.orig 2012-06-15 18:11:58.000000000 +0000
++++ src/wmutil.c.in
+@@ -114,7 +114,7 @@ void *wrealloc(void *ptr, size_t newsize
+ }
+
+
+-inline void wfree(void *ptr)
++void wfree(void *ptr)
+ {
+ if (ptr != NULL)
+ free(ptr);