From: Guido van Rossum Date: Thu, 17 Dec 1998 18:03:10 +0000 (+0000) Subject: Patch by Chris Herborth: X-Git-Tag: v1.5.2b1~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e1d0e95eae5e2f7490dabdcee11a204f7db41ea;p=python Patch by Chris Herborth: have to use a const-correct prototype on BeOS or the compiler gets uppity. --- diff --git a/Python/getopt.c b/Python/getopt.c index 91aaa28e81..5175e0a3de 100644 --- a/Python/getopt.c +++ b/Python/getopt.c @@ -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;