This simple modification to an existing patch was being carried in dports, but I'm moving it over to ports now that lua-posix has no maintainer.