This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problems compiling rsync with latest update


On Wed, Sep 19, 2001 at 02:56:26PM +0200, Gerrit P. Haase wrote:
> Corinna Vinschen schrieb am 2001-09-19, 9:30:
> >- getopt.h is now automatically included with unistd.h to fulfil
> >  SUSv2 requirements. (Corinna Vinschen)
> 
> Uiuiui, I should be more concentrated when reading...
> I apologize for the williwaw.
> 
> However, I think this is an unneccessary change, and I don't like it.
> I have commented out this part of unistd.h.

Each new version of Cygwin will bring it back, regardless if
you like it or not.  It's a _requirement_ as I wrote above so
it's _by definition_ not unnecessary.

$ man 3 getopt

GETOPT(3)           Linux Programmer's Manual           GETOPT(3)

NAME
       getopt - Parse command line options

SYNOPSIS
       #include <unistd.h>

       int getopt(int argc, char * const argv[],
                  const char *optstring);
[...]


Excerpt from SUSv2:

 The Single UNIX ® Specification, Version 2
 Copyright © 1997 The Open Group 


 NAME
    getopt, optarg, optind, opterr, optopt - command option parsing 

 SYNOPSIS

    #include <unistd.h>

    int getopt(int argc, char * const argv[], const char *optstring);
[...]

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]