fix probleme MacOS 10.1

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5364 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Damien Doligez 2003-01-03 15:08:08 +00:00
parent eac092b352
commit bdf861b2e1
1 changed files with 4 additions and 4 deletions

View File

@ -388,7 +388,7 @@ value install_signal_handler(value signal_number, value action) /* ML */
#ifdef POSIX_SIGNALS
sigact.sa_handler = act;
sigemptyset(&sigact.sa_mask);
#if defined(SYS_solaris) || defined(SYS_rhapsody)
#if defined(SYS_solaris) || defined(DARWIN_VERSION_6)
sigact.sa_flags = SA_SIGINFO;
#else
sigact.sa_flags = 0;
@ -586,10 +586,10 @@ void init_signals(void)
struct sigaction act;
act.sa_handler = (void (*)(int)) trap_handler;
sigemptyset(&act.sa_mask);
#if defined (SYS_aix)
act.sa_flags = 0;
#elif defined (SYS_rhapsody)
#if defined (DARWIN_VERSION_6)
act.sa_flags = SA_SIGINFO;
#elif defined (SYS_aix) || defined (SYS_rhapsody)
act.sa_flags = 0;
#else
act.sa_flags = SA_NODEFER;
#endif