PR: ports/76331 Submitted by: Martin Portmann <map@infinitum.ch> Patch by: Vasil Dimov <vd@datamax.bg>