forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cooledit-3.17.17-interix.patch
31 lines (29 loc) · 1.09 KB
/
cooledit-3.17.17-interix.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff -ru -x '*.Po' -x '*.Plo' cooledit-3.17.17.orig/editor/_coolpython.c cooledit-3.17.17/editor/_coolpython.c
--- cooledit-3.17.17.orig/editor/_coolpython.c 2008-04-03 10:59:33 +0200
+++ cooledit-3.17.17/editor/_coolpython.c 2008-04-03 11:02:45 +0200
@@ -1,4 +1,15 @@
+// on interix, need this before config.h to avoid clashes
+// with wchar.h, which cooledit believes is not there, and therefore
+// defines mbstate_t. Python.h includes it, and thus wchar.h messes up.
+#ifdef __cplusplus
+extern "C" {
+#endif
+#include "Python.h"
+#ifdef __cplusplus
+}
+#endif
+
#include <config.h>
#ifdef HAVE_PYTHON
diff -ru -x '*.Po' -x '*.Plo' cooledit-3.17.17.orig/rxvt/_rxvtlib.h cooledit-3.17.17/rxvt/_rxvtlib.h
--- cooledit-3.17.17.orig/rxvt/_rxvtlib.h 2008-04-03 11:10:02 +0200
+++ cooledit-3.17.17/rxvt/_rxvtlib.h 2008-04-03 09:00:13 +0200
@@ -170,7 +170,7 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <net/if.h>
-#if !defined(__NetBSD__) && !defined(__OpenBSD__)
+#if !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__INTERIX)
#include <net/if_arp.h>
#endif
#include "X11/keysymdef.h"