getopt_darwin.c (242B)
1 /* see LICENSE file for copyright and license details */ 2 #include "../util.h" 3 4 #include <unistd.h> 5 6 #if defined(__APPLE__) && !defined(ARUU_FORCE_POSIX) 7 extern int optreset; 8 9 void 10 getopt_reset(void) 11 { 12 optreset = 1; 13 optind = 1; 14 } 15 #endif