Apply fix for absent prototype from commit 4e43294b8b6e795c81b5e1288c937e419c186d47 on master