util-linux/text-utils
Carlos Santos 9ea8ded37b build-sys: fix compilation with ncurses and uClibc or musl libc
Compiling util-linux with musl and uClibc-ng toolchains when wide-char
support is not enabled in ncurses results in compilation failures with
the following message:

    error: two or more data types in declaration specifiers
    #define
     wchar_t char

The problem occurs because util-linux #defines its own wchar_t (as char)
when configured without widechar support. This conflicts with definition
of wchar_t contained in stddef.h.

This error can be reproduced running "<toolchain-cc -o test test.c" with
the following test program:

    #include <ctype.h>
    #define wchar_t char
    #include <stddef.h>

    int main()
    {
        return 0;
    }

The only way to avoid the problem it to reorder the inclusion of headers
in some files under the text-utils directory.

Addresses:
  http://autobuild.buildroot.net/results/3a2f228e0fa7b5cc28a13d49f48f1a6aef8d9d7a
  http://autobuild.buildroot.net/results/99e96069f652d511c6212a5bb6be29e68fb1747c
  http://autobuild.buildroot.net/results/2dc5721aef93b7b410153bafad78248fac3db941
  http://autobuild.buildroot.net/results/8a9e197ba7a292b18f8c0c36dca974685556a38a

Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
2017-01-20 11:07:46 +01:00
..
Makemodule.am build-sys: disable unused parameter warnings for some test progs 2016-02-23 03:20:22 +01:00
col.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
col.c col: backspacing widechars 2017-01-04 22:01:40 +00:00
colcrt.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
colcrt.c build-sys: fix compilation with ncurses and uClibc or musl libc 2017-01-20 11:07:46 +01:00
colrm.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
colrm.c build-sys: fix compilation with ncurses and uClibc or musl libc 2017-01-20 11:07:46 +01:00
column.1 column: rename --columns to --output-width 2017-01-17 13:14:05 +01:00
column.c build-sys: fix compilation with ncurses and uClibc or musl libc 2017-01-20 11:07:46 +01:00
hexdump-conv.c hexdump: Rename struct _pr to struct hexdump_pr and remove it's typedef 2013-12-02 13:44:21 +01:00
hexdump-display.c hexdump: add highlighting support 2014-02-10 16:01:37 +01:00
hexdump-parse.c misc: simplify if clauses [oclint] 2016-07-21 21:14:33 +01:00
hexdump.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
hexdump.c Use --help suggestion on invalid option 2016-12-19 13:13:34 +01:00
hexdump.h hexdump: add highlighting support 2014-02-10 16:01:37 +01:00
line.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
line.c Use --help suggestion on invalid option 2016-12-19 13:13:34 +01:00
more.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
more.c more: avoid double free() on exit 2016-12-15 14:40:26 +01:00
pg.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
pg.c misc: fix some compiler warnings 2016-10-27 11:03:24 +02:00
rev.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
rev.c Use --help suggestion on invalid option 2016-12-19 13:13:34 +01:00
tailf.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
tailf.c Use --help suggestion on invalid option 2016-12-19 13:13:34 +01:00
ul.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
ul.c Use --help suggestion on invalid option 2016-12-19 13:13:34 +01:00