mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Patch by Chris Herborth:
have to use a const-correct prototype on BeOS or the compiler gets uppity.
This commit is contained in:
		
							parent
							
								
									5cd975c678
								
							
						
					
					
						commit
						0e1d0e95ea
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -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; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum