Yeah, any modern UNIX supports the same sendmsg/SCM_RIGHTS pattern. You might need to tweak the includes and supply your own CMSG_*() macros on some though.
Some older UNIX variants only supported the BSD4.3-style msg_accrights style fd passing, although those are probably nearly extinct at this point.