Gentoo Archives: gentoo-commits

From: "Richard Yao (ryao)" <ryao@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/ncurses/files: ncurses-5.9-fix-clang-build.patch
Date: Tue, 29 May 2012 08:26:08
Message-Id: 20120529082543.9BAB02004C@flycatcher.gentoo.org
1 ryao 12/05/29 08:25:43
2
3 Added: ncurses-5.9-fix-clang-build.patch
4 Log:
5 Fix illegal C++ code, bug #417763, approved by Chainsaw
6
7 (Portage version: 2.1.10.49/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 sys-libs/ncurses/files/ncurses-5.9-fix-clang-build.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/ncurses/files/ncurses-5.9-fix-clang-build.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/ncurses/files/ncurses-5.9-fix-clang-build.patch?rev=1.1&content-type=text/plain
14
15 Index: ncurses-5.9-fix-clang-build.patch
16 ===================================================================
17 diff --git a/ncurses-5.9/c++/cursesf.h b/ncurses-5.9/c++/cursesf.h
18 index 70a30c3..db38063 100644
19 --- a/ncurses-5.9/c++/cursesf.h
20 +++ b/ncurses-5.9/c++/cursesf.h
21 @@ -677,7 +677,7 @@ protected:
22 }
23
24 public:
25 - NCursesUserForm (NCursesFormField Fields[],
26 + NCursesUserForm (NCursesFormField* Fields[],
27 const T* p_UserData = STATIC_CAST(T*)(0),
28 bool with_frame=FALSE,
29 bool autoDelete_Fields=FALSE)
30 @@ -686,7 +686,7 @@ public:
31 set_user (const_cast<void *>(p_UserData));
32 };
33
34 - NCursesUserForm (NCursesFormField Fields[],
35 + NCursesUserForm (NCursesFormField* Fields[],
36 int nlines,
37 int ncols,
38 int begin_y = 0,
39 diff --git a/ncurses-5.9/c++/cursesm.h b/ncurses-5.9/c++/cursesm.h
40 index d9c2273..2d5b79a 100644
41 --- a/ncurses-5.9/c++/cursesm.h
42 +++ b/ncurses-5.9/c++/cursesm.h
43 @@ -635,7 +635,7 @@ protected:
44 }
45
46 public:
47 - NCursesUserMenu (NCursesMenuItem Items[],
48 + NCursesUserMenu (NCursesMenuItem* Items[],
49 const T* p_UserData = STATIC_CAST(T*)(0),
50 bool with_frame=FALSE,
51 bool autoDelete_Items=FALSE)
52 @@ -644,7 +644,7 @@ public:
53 set_user (const_cast<void *>(p_UserData));
54 };
55
56 - NCursesUserMenu (NCursesMenuItem Items[],
57 + NCursesUserMenu (NCursesMenuItem* Items[],
58 int nlines,
59 int ncols,
60 int begin_y = 0,