From 2a6a56c227b8649b3f3f3f6cd1648305e82d3aab Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 18 May 2000 18:32:05 +0000 Subject: * select.cc (thread_pipe): Add paranoid check to ensure thread termination. * external.cc: Eliminate obsolete include. * getopt.c (getopt_long): Fix compiler warning. * shared.h: Moved PID_ definitions to include/sys/cygwin so that they can be used by external programs. * include/sys/cygwin.h: Move external definitions here. Include sys/resource.h to avoid having to do this everywhere. --- winsup/cygwin/libc/getopt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/libc') diff --git a/winsup/cygwin/libc/getopt.c b/winsup/cygwin/libc/getopt.c index a5883f07c..b09e133a6 100644 --- a/winsup/cygwin/libc/getopt.c +++ b/winsup/cygwin/libc/getopt.c @@ -154,7 +154,8 @@ getopt_long(nargc, nargv, options, long_options, index) if ((retval = getopt_internal(nargc, nargv, options)) == -2) { char *current_argv = nargv[optind++] + 2, *has_equal; - int i, current_argv_len, match = -1; + int i, match = -1; + size_t current_argv_len; if (*current_argv == '\0') { return(-1); -- cgit v1.2.3