Here's a patch that fixes it. Added the needed include, and moved the function declaration after the ifdef.
Here's a patch that fixes it. Added the needed include, and moved the function declaration after the ifdef.