View | Details | Raw Unified | Return to bug 244181 | Differences between
and this patch

Collapse All | Expand All

(-)b/unzip.c (-1 / +8 lines)
Lines 36-41 Link Here
36
 * options.
36
 * options.
37
 */
37
 */
38
38
39
#ifdef __GLIBC__
40
#define _GNU_SOURCE
41
#endif
42
39
#include <sys/queue.h>
43
#include <sys/queue.h>
40
#include <sys/stat.h>
44
#include <sys/stat.h>
41
45
Lines 944-950 getopts(int argc, char *argv[]) Link Here
944
{
948
{
945
	int opt;
949
	int opt;
946
950
951
#ifdef __GLIBC__
952
	optind = 0;
953
#else
947
	optreset = optind = 1;
954
	optreset = optind = 1;
955
#endif
948
	while ((opt = getopt(argc, argv, "aCcd:fjLlnopqtuvx:yZ1")) != -1)
956
	while ((opt = getopt(argc, argv, "aCcd:fjLlnopqtuvx:yZ1")) != -1)
949
		switch (opt) {
957
		switch (opt) {
950
		case '1':
958
		case '1':
951
- 

Return to bug 244181