add public declaration for optreset under appropriate feature profiles
authorRich Felker <dalias@aerifal.cx>
Fri, 30 Aug 2019 21:48:47 +0000 (17:48 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 30 Aug 2019 21:48:47 +0000 (17:48 -0400)
commita882841baf42e6a8b74cc33a239b84a9a79493db
tree7f4ca33c1af09ef9d51fda25d6ffea75bd6dfde7
parent74244e5b3ed4a61d99c5fc0967b69e5c9a753456
add public declaration for optreset under appropriate feature profiles

commit 030e52639248ac8417a4934298caa78c21a228d1 added optreset, a BSD
extension to getopt duplicating the functionality (also an extension)
of setting optind to 0, but failed to provide a public declaration for
it. according to the BSD documentation and headers, the application is
not supposed to need to provide its own declaration.
include/unistd.h
src/misc/getopt.c