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