ntdll: Only use ST_FIX_ALIGN on solaris.

This commit is contained in:
André Hentschel 2011-02-04 21:44:46 +01:00 committed by Alexandre Julliard
parent bf640445c7
commit e78bd6dfa1
1 changed files with 2 additions and 0 deletions

View File

@ -809,6 +809,7 @@ void signal_init_process(void)
if (sigaction( SIGTRAP, &sig_act, NULL ) == -1) goto error;
#endif
#ifdef __sun__
/* 'ta 6' tells the kernel to synthesize any unaligned accesses this
process makes, instead of just signalling an error and terminating
the process. wine-devel did not reach a conclusion on whether
@ -816,6 +817,7 @@ void signal_init_process(void)
because it could obscure problems in user code */
__asm__("ta 6"); /* 6 == ST_FIX_ALIGN defined in sys/trap.h */
return;
#endif
error:
perror("sigaction");