mirror of
				git://git.code.sf.net/p/cdesktopenv/code
				synced 2025-03-09 15:50:02 +00:00 
			
		
		
		
	Due to glibc not have a 'constant' stderr reference, on linux set the error
reporting var at runtime.
This commit is contained in:
		
							parent
							
								
									2d1fd47470
								
							
						
					
					
						commit
						1483f41a69
					
				
					 2 changed files with 9 additions and 0 deletions
				
			
		|  | @ -313,6 +313,11 @@ int             DtSearchInit ( | |||
| 	aa_argv0 = argv0; | ||||
|     if (err_file) | ||||
| 	aa_stderr = err_file; | ||||
| #if defined(linux) | ||||
|     else | ||||
| 	aa_stderr = stderr; | ||||
| #endif | ||||
| 
 | ||||
|     sprintbuf = austext_malloc (SPRINTBUFSZ, PROGNAME "135", NULL); | ||||
| 
 | ||||
|     /* Open msgs and help text catalogs. */ | ||||
|  |  | |||
|  | @ -60,7 +60,11 @@ | |||
| #include <stdio.h> | ||||
| #include <nl_types.h> | ||||
| 
 | ||||
| #if defined(linux) | ||||
| FILE	*aa_stderr =		NULL; | ||||
| #else | ||||
| FILE	*aa_stderr =		stderr; | ||||
| #endif | ||||
| char	*aa_argv0 =		"<argv0>"; | ||||
| nl_catd	dtsearch_catd =		(nl_catd) -1; | ||||
| nl_catd	austools_catd =		(nl_catd) -1; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue