1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +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:
Peter Howkins 2012-03-11 17:46:01 +00:00
parent 2d1fd47470
commit 1483f41a69
2 changed files with 9 additions and 0 deletions

View file

@ -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. */

View file

@ -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;