This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


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

[PATCH] Silence include/getopt.h warning


The following patch silences a warning encountered when building for an
i686-pc-cygwin host and mips-mips-ecoff target.

-Cory


2001-10-17  Cory Tusar  <ctusar@videon-central.com>

  include/ChangeLog
  * getopt.h [!HAVE_DECL_GETOPT] (getopt): Fixed function prototype.


Index: getopt.h
===================================================================
RCS file: /cvs/src/src/include/getopt.h,v
retrieving revision 1.5
diff -u -p -r1.5 getopt.h
--- getopt.h	2001/03/14 19:45:29	1.5
+++ getopt.h	2001/10/18 00:42:37
@@ -112,7 +112,7 @@ struct option
 extern int getopt (int argc, char *const *argv, const char *shortopts);
 #else /* not __GNU_LIBRARY__ */
 # if !defined (HAVE_DECL_GETOPT)
-extern int getopt ();
+extern int getopt (int argc, char *const *argv, const char *optstring);
 # endif
 #endif /* __GNU_LIBRARY__ */
 extern int getopt_long (int argc, char *const *argv, const char *shortopts,


--
Cory T. Tusar
Embedded Systems Engineer
Videon Central, Inc.
2171 Sandy Drive
State College, PA 16801


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