here is a gcc 4.3.x patch for knock.
Created attachment 161371 [details, diff]
Created attachment 161372 [details, diff]
Thanks for the patch!
I see there's no package maintainer, but it looks pretty simple so I'll handle it myself.
Your patch has been forwarded upstream and commited to gentoo tree.