summaryrefslogtreecommitdiff
path: root/mail/mutt/patches/patch-getdomain.c
blob: b216eb863cf8172301e9fac5e34e272345b98bf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-getdomain.c,v 1.1 2016/05/01 04:19:13 richard Exp $

avoid symbol name clash by mutt with system headers (at least on SunOS)

--- getdomain.c.orig	2016-04-02 18:12:22.000000000 +0000
+++ getdomain.c
@@ -26,6 +26,17 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 
+/* 
+ * implicit stream.h may define the following symbols also defined
+ * by mutt without better prefixing
+ */
+#ifdef M_CMD
+#undef M_CMD
+#endif
+#ifdef M_READ
+#undef M_READ
+#endif
+
 #include "mutt.h"