1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/lang/polyml/files/patch-libpolyml-sighandler.cpp
Rong-En Fan 64c804e4a6 - Fix build with gcc 4
Submitted by:	Timothy Bourke <timbob at bigpond.com> (maintainer)
2008-04-05 05:18:58 +00:00

12 lines
490 B
C++

--- libpolyml/sighandler.cpp.orig 2008-04-05 16:03:20.000000000 +1100
+++ libpolyml/sighandler.cpp 2008-04-05 16:03:29.000000000 +1100
@@ -381,7 +381,7 @@
struct sigaltstack ex_stack;
#endif
memset(&ex_stack, 0, sizeof(ex_stack));
- ex_stack.ss_sp = taskData->signalStack;
+ ex_stack.ss_sp = (char *)taskData->signalStack;
ex_stack.ss_size = SIGSTKSZ;
ex_stack.ss_flags = 0; /* not SS_DISABLE */
int sigaltstack_result = sigaltstack(&ex_stack, NULL);