+Sat Mar 1 11:54:02 1997 Sam Hartman <hartmans@luminous.MIT.EDU>
+
+ * com_err.c: Make com_err_hook global instead of static to work around either NetBSD or Gcc bug.[383]
+
Sat Feb 22 12:18:47 1997 Richard Basch <basch@lehman.com>
* Makefile.in: Move list file construction to win-post.in
static void MacMessageBox(errbuf);
#endif
-static et_old_error_hook_func com_err_hook = 0;
+ et_old_error_hook_func com_err_hook = 0;
static void default_com_err_proc
ET_P((const char FAR *whoami, errcode_t code,
const char FAR *fmt;
va_list ap;
{
- if (!com_err_hook)
+ et_old_error_hook_func cef = com_err_hook;
+ if (!cef)
default_com_err_proc(whoami, code, fmt, ap);
else
- (*com_err_hook)(whoami, code, fmt, ap);
+ (cef)(whoami, code, fmt, ap);
}