Don't change it to include_once().
That just makes it so that the file is not included again.
Yes that does fix the redeclare-problem, but it also means that whatever else is done in that file is only done once, which might cause your script to explode.
Instead, take the function-declaration out of the included file, and put it somewhere else, in a location where you know it will be parsed only once.