Message-Id: <200103310007.TAA03308@delorie.com> Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: "Mark Paulus" To: "cygwin AT cygwin DOT com" Date: Fri, 30 Mar 2001 13:18:39 -0700 Reply-To: "Mark Paulus" X-Mailer: PMMail 2000 Professional (2.10.2010) For Windows 2000 (5.0.2195;1) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Q about unistd.h/getopt.h I apologize if this has been asked, but I can't seem to access the mail archives right now to check. Anyway, I am building fetchmail, and it mostly builds right out of the box, except for one small problem which I noticed before but didn't pay attention to much. It complains that fetchmail.c has an undefined variable optind. After looking around, and compiling the exact same source on my debian box, I find out that getopt.h is included in unistd.h, with the following code: #ifdef __USE_POSIX2 /* Get definitions and prototypes for functions to process the arguments in ARGV (ARGC of them, minus the program name) for options given in OPTS. */ # define __need_getopt # include #endif and that nothing like this exists in cygwin. My debian machine is using 2.95.2-13 of gcc. Is this a difference in the versions of gcc, or an issue with the cygwin version of unistd.h? Thanks -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple