diff options
| author | Patrick Steinhardt <ps@pks.im> | 2018-04-10 13:36:31 +0100 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2018-04-11 13:04:53 +0200 |
| commit | cc6ab5efb13453cc8b5660ab268992e4861c73a7 (patch) | |
| tree | 46bbb9f6810b39473a73e81f720de0e0a8408c2c /sys-utils/lscpu-arm.c | |
| parent | 23f54ce77773aa77f578084f2212b9173827fdc1 (diff) | |
| download | util-linux-cc6ab5efb13453cc8b5660ab268992e4861c73a7.tar.gz | |
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>
Diffstat (limited to 'sys-utils/lscpu-arm.c')
0 files changed, 0 insertions, 0 deletions
