From: David O'Brien Date: Sat, 12 Oct 2002 04:01:04 +0000 (+0000) Subject: getopt.h: getopt is in unistd.h. X-Git-Tag: releases/gcc-3.3.0~2324 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=520157677f8db42ebfb1bacd2d5d8be6dd1aa5d7;p=thirdparty%2Fgcc.git getopt.h: getopt is in unistd.h. 2002-10-11 David O'Brien * 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 --- diff --git a/include/ChangeLog b/include/ChangeLog index 64e99549c09c..b7b4bfbb29d9 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2002-10-11 David O'Brien + + * 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 * libiberty.h (asprintf, vasprintf): Don't declare them if the diff --git a/include/getopt.h b/include/getopt.h index 0c6470b3ddb9..da09cee3be10 100644 --- a/include/getopt.h +++ b/include/getopt.h @@ -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