I made the libobsd copy of OpenBSD's getopt() include an optreset variable, but not the OpenBSD getopt() implementation if it detects the system has a getopt(). This might make some programs work just fine, but it's best to include the whole implementation in this case to make all programs work as they should.