Skip to content

Commit 0e1d0e9

Browse files
committed
Patch by Chris Herborth:
have to use a const-correct prototype on BeOS or the compiler gets uppity.
1 parent 5cd975c commit 0e1d0e9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Python/getopt.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,14 @@ int optind = 1; /* index into argv array */
4040
char * optarg = NULL; /* optional argument */
4141

4242

43+
#ifndef __BEOS__
4344
int getopt(argc,argv,optstring)
4445
int argc;
4546
char *argv[];
4647
char optstring[];
48+
#else
49+
int getopt( int argc, char *const *argv, const char *optstring )
50+
#endif
4751
{
4852
static char *opt_ptr = "";
4953
register char *ptr;

0 commit comments

Comments
 (0)