MantisBT - CMake
View Issue Details
0015740CMakeCMakepublic2015-09-12 12:452016-02-01 09:10
Thomas Klausner 
Brad King 
normalminoralways
closedfixed 
x86_64NetBSD7.99.22
CMake 3.3 
CMake 3.4CMake 3.4 
0015740: NetBSD: curses compatibility
set_field_buffer on NetBSD, see http://netbsd.gw.com/cgi-bin/man-cgi?set_field_buffer++NetBSD-current, [^] and Solaris, see https://docs.oracle.com/cd/E36784_01/html/E36880/set-field-buffer-3curses.html, [^] has as third argument "char *" while ncurses has "const char *".

I don't know if one is more correct than the other.
Build on NetBSD (or presumably on Solaris).
The attached patch casts the const away to fix the build on NetBSD.
I think this shouldn't cause trouble with ncurses, but let me know if it does.
No tags attached.
cxx patch-Source_CursesDialog_cmCursesWidget.cxx (583) 2015-09-12 12:45
https://public.kitware.com/Bug/file/5524/patch-Source_CursesDialog_cmCursesWidget.cxx
Issue History
2015-09-12 12:45Thomas KlausnerNew Issue
2015-09-12 12:45Thomas KlausnerFile Added: patch-Source_CursesDialog_cmCursesWidget.cxx
2015-09-14 09:53Brad KingNote Added: 0039416
2015-09-14 09:54Brad KingAssigned To => Brad King
2015-09-14 09:54Brad KingStatusnew => resolved
2015-09-14 09:54Brad KingResolutionopen => fixed
2015-09-14 09:54Brad KingFixed in Version => CMake 3.4
2015-09-14 09:54Brad KingTarget Version => CMake 3.4
2015-09-16 08:44Brad KingNote Edited: 0039416bug_revision_view_page.php?bugnote_id=39416#r1901
2016-02-01 09:10Robert MaynardNote Added: 0040408
2016-02-01 09:10Robert MaynardStatusresolved => closed

Notes
(0039416)
Brad King   
2015-09-14 09:53   
(edited on: 2015-09-16 08:44)
Patch applied, thanks:

 ccmake: Use more-portable call to set_field_buffer
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7046eedd [^]

(0040408)
Robert Maynard   
2016-02-01 09:10   
Closing resolved issues that have not been updated in more than 4 months.