X-Moto

Tasklist

FS#805 - sa_restorer is deprecated and undefined on certain architectures

Attached to Project: X-Moto
Opened by Anonymous Submitter - Saturday, 26 May 2012, 09:31 GMT
Task Type Bug Report
Category General
Status Unconfirmed
Assigned To No-one
Operating System All
Severity High
Priority Normal
Reported Version 0.5.7
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Hi,

sa_restorer isn't part of POSIX and the sigaction manpage now specifies it shouldn't be used. In the current X-Moto source it is used everywhere but Mac OS X and FreeBSD, but just assigned NULL; the following patch removes it completely and avoids build failures on Hurd, kFreeBSD and Linux/ia64:

--- xmoto-0.5.9+dfsg.orig/src/GameInit.cpp
+++ xmoto-0.5.9+dfsg/src/GameInit.cpp
@@ -269,9 +269,6 @@
struct sigaction v_act;

v_act.sa_handler = xmexit_term;
-#if !defined(__APPLE__) && !defined(__FreeBSD__)
- v_act.sa_restorer = NULL;
-#endif
sigemptyset(&v_act.sa_mask);
v_act.sa_flags = 0;

Regards,

Stephen Kitt <steve@sk2.org>
This task depends upon

Loading...