Fix compiler warnings in Native Client and Linux builds.
This commit is contained in:
parent
b9b706f832
commit
1925fe9cf9
10 changed files with 34 additions and 7 deletions
|
@ -20,7 +20,9 @@
|
|||
*/
|
||||
#include "../../SDL_internal.h"
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#include <pthread.h>
|
||||
#include <errno.h>
|
||||
|
||||
|
|
|
@ -57,11 +57,13 @@
|
|||
|
||||
#include "SDL_assert.h"
|
||||
|
||||
#ifndef __NACL__
|
||||
/* List of signals to mask in the subthreads */
|
||||
static const int sig_list[] = {
|
||||
SIGHUP, SIGINT, SIGQUIT, SIGPIPE, SIGALRM, SIGTERM, SIGCHLD, SIGWINCH,
|
||||
SIGVTALRM, SIGPROF, 0
|
||||
};
|
||||
#endif
|
||||
|
||||
static void *
|
||||
RunThread(void *data)
|
||||
|
@ -115,8 +117,10 @@ SDL_SYS_CreateThread(SDL_Thread * thread, void *args)
|
|||
void
|
||||
SDL_SYS_SetupThread(const char *name)
|
||||
{
|
||||
#ifndef __NACL__
|
||||
int i;
|
||||
sigset_t mask;
|
||||
#endif
|
||||
|
||||
if (name != NULL) {
|
||||
#if defined(__MACOSX__) || defined(__IPHONEOS__) || defined(__LINUX__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue