]> Zhao Yanbai Git Server - minix.git/commit
libmagic: supply own ctype macros 61/3161/1
authorDavid van Moolenbroek <david@minix3.org>
Mon, 24 Aug 2015 06:30:46 +0000 (08:30 +0200)
committerDavid van Moolenbroek <david@minix3.org>
Thu, 17 Sep 2015 17:13:13 +0000 (17:13 +0000)
commitebef68bf4c8e95fe6b06214c1081fab3882ce1d3
treed04788d9ef18074418f85e2e2ffaa84a3a72c458
parentc8f69861858b605a46afcc194b64a11dadcbdb21
libmagic: supply own ctype macros

Due to the current linker command line ordering, parts of lib(min)c
that are used exclusively by libmagic end up not being instrumented,
which then causes problems transferring pointers such as _ctype_tab_
and _tolower_tab_.  As a temporary workaround, we redefine the macros
that use those pointers.  A better long-term solution should
eventually render this patch obsolete.

Change-Id: Ice1d125ff6fb2f65ac6dcc6cf6eec7cd6176bee1
minix/llvm/static/magic/magic_eval_lib.c