Commit e78bd6df authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

ntdll: Only use ST_FIX_ALIGN on solaris.

parent bf640445
...@@ -809,6 +809,7 @@ void signal_init_process(void) ...@@ -809,6 +809,7 @@ void signal_init_process(void)
if (sigaction( SIGTRAP, &sig_act, NULL ) == -1) goto error; if (sigaction( SIGTRAP, &sig_act, NULL ) == -1) goto error;
#endif #endif
#ifdef __sun__
/* 'ta 6' tells the kernel to synthesize any unaligned accesses this /* 'ta 6' tells the kernel to synthesize any unaligned accesses this
process makes, instead of just signalling an error and terminating process makes, instead of just signalling an error and terminating
the process. wine-devel did not reach a conclusion on whether the process. wine-devel did not reach a conclusion on whether
...@@ -816,6 +817,7 @@ void signal_init_process(void) ...@@ -816,6 +817,7 @@ void signal_init_process(void)
because it could obscure problems in user code */ because it could obscure problems in user code */
__asm__("ta 6"); /* 6 == ST_FIX_ALIGN defined in sys/trap.h */ __asm__("ta 6"); /* 6 == ST_FIX_ALIGN defined in sys/trap.h */
return; return;
#endif
error: error:
perror("sigaction"); perror("sigaction");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment