summaryrefslogtreecommitdiff
path: root/app-text/aspell/files/aspell-0.60.5-solaris.patch
blob: 1cfc5f3e6caad2d4e5b6928f6f50fc5330b86b42 (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
25
26
27
* grobian@gentoo.org: on Solaris 10 _XOPEN_SOURCE_EXTENDED may not be
  defined when including wchar.h with g++

--- a/prog/check_funs.cpp
+++ b/prog/check_funs.cpp
@@ -18,10 +18,6 @@
 
 #include "settings.h"
 
-#ifdef DEFINE_XOPEN_SOURCE_EXTENDED
-#  define _XOPEN_SOURCE_EXTENDED 1
-#endif
-
 #ifdef CURSES_NON_POSIX
 #define CURSES_ONLY 1
 #endif
@@ -35,6 +31,10 @@
 
 #include "gettext.h"
 
+#ifdef DEFINE_XOPEN_SOURCE_EXTENDED
+#  define _XOPEN_SOURCE_EXTENDED 1
+#endif
+
 using namespace acommon;
 
 StackPtr<CheckerString> state;