But "sed -i'' s/../../ FILE" will work on both, no? Or -i.orig if you want to keep a backup file?
echo foo | sed -i pattern
echo foo | sed -i .orig
But you can still use "-i.orig"; that should work on both. That will leave you with a .orig file to clean up, but arguably that's not a bad thing as -i can clobber files.