Copied variable declaration from other BSD to prevent name not declared error