summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-12-17 18:03:10 (GMT)
committerGuido van Rossum <guido@python.org>1998-12-17 18:03:10 (GMT)
commit0e1d0e95eae5e2f7490dabdcee11a204f7db41ea (patch)
treed0e47cb6ea96435ad92cea5e20e8b911903a312d /Python
parent5cd975c67883215472cf76b9ca48133bc80f0646 (diff)
downloadcpython-0e1d0e95eae5e2f7490dabdcee11a204f7db41ea.zip
cpython-0e1d0e95eae5e2f7490dabdcee11a204f7db41ea.tar.gz
cpython-0e1d0e95eae5e2f7490dabdcee11a204f7db41ea.tar.bz2
Patch by Chris Herborth:
have to use a const-correct prototype on BeOS or the compiler gets uppity.
Diffstat (limited to 'Python')
-rw-r--r--Python/getopt.c4
1 files changed, 4 insertions, 0 deletions
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;