]> git.ipfire.org Git - thirdparty/util-linux.git/commit
column: fix compilation when libc lacks wide-character support
authorCarlos Santos <casantos@datacom.ind.br>
Thu, 29 Jun 2017 10:55:42 +0000 (07:55 -0300)
committerKarel Zak <kzak@redhat.com>
Thu, 29 Jun 2017 11:03:43 +0000 (13:03 +0200)
commitccedd0d7b12df2382dc223d3325fe52a2981bb59
tree6ca6339e8d5fc17cf2a37a2f66a609e22b335a8e
parent41d758f82d2e5e0a3f5c87c58cb3ca4eacc80d9b
column: fix compilation when libc lacks wide-character support

Commit 4762ae9d removed mtsafe_strtok() but left behind calls to wcstok
and wcspbrk. This leads to build failures when libc does not have the
wide-character functions, like some uClibc builds.

Solve the problem by using strtok_r and strpbrk when HAVE_WIDECHAR is
not defined.

Fixes:
  http://autobuild.buildroot.net/results/fd8a1a8e0cef3aeed9588540e8e663664f6b43aa
  http://autobuild.buildroot.net/results/5ad73ea8b471321988c50d80a5e50d4504151dd6
  http://autobuild.buildroot.net/results/04411b7280dc51ecd51236967981a42352bbeb3e

Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
text-utils/column.c