getopt.h: getopt is in unistd.h.
2002-10-11 David O'Brien <obrien@FreeBSD.org> * getopt.h: getopt is in unistd.h. The Single UNIX(tm) Specification, Version 2 Copyright (c)1997 The Open Group Approved by: Committed as obvious. From-SVN: r58078
This commit is contained in:
parent
5dd78e9a69
commit
520157677f
|
@ -1,3 +1,8 @@
|
|||
2002-10-11 David O'Brien <obrien@FreeBSD.org>
|
||||
|
||||
* getopt.h: getopt is in unistd.h. The Single UNIX(tm) Specification,
|
||||
Version 2 Copyright (c)1997 The Open Group
|
||||
|
||||
2002-09-19 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
* libiberty.h (asprintf, vasprintf): Don't declare them if the
|
||||
|
|
|
@ -108,7 +108,7 @@ struct option
|
|||
#if !HAVE_DECL_GETOPT
|
||||
#if defined (__GNU_LIBRARY__) || defined (HAVE_DECL_GETOPT)
|
||||
/* Many other libraries have conflicting prototypes for getopt, with
|
||||
differences in the consts, in stdlib.h. To avoid compilation
|
||||
differences in the consts, in unistd.h. To avoid compilation
|
||||
errors, only prototype getopt for the GNU C library. */
|
||||
extern int getopt (int argc, char *const *argv, const char *shortopts);
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue