shells/ksh-devel: Fix build with LLVM15
(cherry picked from commit de86e8a64284ffa601effe0bd2b1fd0bd495abf8)