From f11b312de19650519fcc740045a603a8f90cf1d3 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(+) (limited to 'Python/getopt.c') 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; -- cgit v1.2.1