]> git.ipfire.org Git - thirdparty/util-linux.git/commit
cfdisk: fix missing prototype for `get_wch`
authorPatrick Steinhardt <ps@pks.im>
Tue, 10 Apr 2018 12:36:31 +0000 (13:36 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Apr 2018 11:04:53 +0000 (13:04 +0200)
commitcc6ab5efb13453cc8b5660ab268992e4861c73a7
tree46bbb9f6810b39473a73e81f720de0e0a8408c2c
parent23f54ce77773aa77f578084f2212b9173827fdc1
cfdisk: fix missing prototype for `get_wch`

The header <ncursesw/ncurses.h> defines the get_wch(3) function only
when `NCURSES_WIDECHAR` is defined. This define is actually getting set
in the same header file, but only in case `_XOPEN_SOURCE` is defined and
has a value of 500 or higher. As we already have the precedence of
defining `_XOPEN_SOURCE` to a value of 600 in some other files, simply
define it to the minimum required value of 500 in "cfdisk.c". This
silences a warning for `get_wch` being unknown.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
disk-utils/cfdisk.c