Without the check for HAVE_DECL_GETPASS and declaring a local function declaration the implicit int rule causes crashes on 64-bit systems without getpass(3) such as Android. Fixes #517.