diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-07-01 13:41:40 -0400 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2010-07-07 09:56:16 +0200 |
commit | 30c97bb8c97e20c502b5b1d588c94059747a40a6 (patch) | |
tree | b01adf45262b4512e295affd5bb4767477ce54a9 /fdisk | |
parent | 541e6934e1fe6833b125c1c64f9a1108bc3d09fa (diff) | |
download | util-linux-old-30c97bb8c97e20c502b5b1d588c94059747a40a6.tar.gz |
cfdisk: search for ncursesw/ncurses.h
Some distros install the wide version of ncurses side by side with the
non-wide version and place the wide headers in an ncursesw/ subdir. So
detect that behavior and include the right header with cfdisk.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'fdisk')
-rw-r--r-- | fdisk/cfdisk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fdisk/cfdisk.c b/fdisk/cfdisk.c index 552858b6..7fa0b191 100644 --- a/fdisk/cfdisk.c +++ b/fdisk/cfdisk.c @@ -75,6 +75,8 @@ #include <slcurses.h> #elif defined(HAVE_SLANG_SLCURSES_H) #include <slang/slcurses.h> +#elif defined(HAVE_NCURSESW_NCURSES_H) && defined(HAVE_WIDECHAR) +#include <ncursesw/ncurses.h> #elif defined(HAVE_NCURSES_H) #include <ncurses.h> #elif defined(HAVE_NCURSES_NCURSES_H) |