Due to glibc not have a 'constant' stderr reference, on linux set the error
reporting var at runtime.
This commit is contained in:
@@ -313,6 +313,11 @@ int DtSearchInit (
|
|||||||
aa_argv0 = argv0;
|
aa_argv0 = argv0;
|
||||||
if (err_file)
|
if (err_file)
|
||||||
aa_stderr = err_file;
|
aa_stderr = err_file;
|
||||||
|
#if defined(linux)
|
||||||
|
else
|
||||||
|
aa_stderr = stderr;
|
||||||
|
#endif
|
||||||
|
|
||||||
sprintbuf = austext_malloc (SPRINTBUFSZ, PROGNAME "135", NULL);
|
sprintbuf = austext_malloc (SPRINTBUFSZ, PROGNAME "135", NULL);
|
||||||
|
|
||||||
/* Open msgs and help text catalogs. */
|
/* Open msgs and help text catalogs. */
|
||||||
|
|||||||
@@ -60,7 +60,11 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <nl_types.h>
|
#include <nl_types.h>
|
||||||
|
|
||||||
|
#if defined(linux)
|
||||||
|
FILE *aa_stderr = NULL;
|
||||||
|
#else
|
||||||
FILE *aa_stderr = stderr;
|
FILE *aa_stderr = stderr;
|
||||||
|
#endif
|
||||||
char *aa_argv0 = "<argv0>";
|
char *aa_argv0 = "<argv0>";
|
||||||
nl_catd dtsearch_catd = (nl_catd) -1;
|
nl_catd dtsearch_catd = (nl_catd) -1;
|
||||||
nl_catd austools_catd = (nl_catd) -1;
|
nl_catd austools_catd = (nl_catd) -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user