diff Python/getopt.c @ 9645:4e15d175eed0 legacy-trunk

Patch by Chris Herborth: have to use a const-correct prototype on BeOS or the compiler gets uppity.
author Guido van Rossum <guido@python.org>
date Thu, 17 Dec 1998 18:03:10 +0000
parents f39bee3ff22b
children 3b981eacad7b
line wrap: on
line diff
--- a/Python/getopt.c	Thu Dec 17 18:02:15 1998 +0000
+++ b/Python/getopt.c	Thu Dec 17 18:03:10 1998 +0000
@@ -40,10 +40,14 @@
 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;