From 0e1d0e95eae5e2f7490dabdcee11a204f7db41ea Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 17 Dec 1998 18:03:10 +0000 Subject: Patch by Chris Herborth: have to use a const-correct prototype on BeOS or the compiler gets uppity. --- Python/getopt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Python/getopt.c b/Python/getopt.c index 91aaa28..5175e0a 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; -- cgit v0.12