Wow, this is an unorthodox was to patch the code. I guess this is how it was in Fedora/EPEL?