getopt_posix.c (515B)
1 /* see LICENSE file for copyright and license details */ 2 #include "../util.h" 3 4 #include <unistd.h> 5 6 /* the one reset posix names */ 7 #if !( \ 8 defined(__linux__) || defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) \ 9 || defined(__OpenBSD__) || defined(__APPLE__) \ 10 ) || defined(ARUU_FORCE_POSIX) 11 void 12 getopt_reset(void) 13 { 14 optind = 1; 15 } 16 #endif