mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Patch by Chris Herborth:
have to use a const-correct prototype on BeOS or the compiler gets uppity.
This commit is contained in:
@@ -40,10 +40,14 @@ int optind = 1; /* index into argv array */
|
||||
char * optarg = NULL; /* optional argument */
|
||||
|
||||
|
||||
#ifndef __BEOS__
|
||||
int getopt(argc,argv,optstring)
|
||||
int argc;
|
||||
char *argv[];
|
||||
char optstring[];
|
||||
#else
|
||||
int getopt( int argc, char *const *argv, const char *optstring )
|
||||
#endif
|
||||
{
|
||||
static char *opt_ptr = "";
|
||||
register char *ptr;
|
||||
|
||||
Reference in New Issue
Block a user