]> granicus.if.org Git - python/commitdiff
Patch by Chris Herborth:
authorGuido van Rossum <guido@python.org>
Thu, 17 Dec 1998 18:03:10 +0000 (18:03 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 17 Dec 1998 18:03:10 +0000 (18:03 +0000)
have to use a const-correct prototype on BeOS or the compiler gets uppity.

Python/getopt.c

index 91aaa28e81755b152f0e22329a27cc5531694f68..5175e0a3dedf19ffc9fa991a30dc4bcdb3ccb0fa 100644 (file)
@@ -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;