+2002-01-11 Bruno Haible <bruno@clisp.org>
+
+ * msgfmt.c (install_sigfpe_handler, uninstall_sigfpe_handler): On AIX,
+ treat SIGTRAP like SIGFPE.
+
2002-01-09 Bruno Haible <bruno@clisp.org>
* msgfmt.c (USE_SIGINFO): New macro.
sigaction (SIGFPE, &action, (struct sigaction *) NULL);
#else
signal (SIGFPE, sigfpe_handler);
-# if defined (__sgi) && defined (SIGTRAP) /* Irix sends SIGTRAP, not SIGFPE. */
+ /* Irix and AIX send SIGTRAP, not SIGFPE. */
+# if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
signal (SIGTRAP, sigfpe_handler);
# endif
#endif
sigaction (SIGFPE, &action, (struct sigaction *) NULL);
#else
signal (SIGFPE, SIG_DFL);
-# if defined (__sgi) && defined (SIGTRAP) /* Irix sends SIGTRAP, not SIGFPE. */
+ /* Irix and AIX send SIGTRAP, not SIGFPE. */
+# if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
signal (SIGTRAP, SIG_DFL);
# endif
#endif