Fix some ISO C90 warnings on OSX

This commit is contained in:
Emmanuele Bassi
2011-02-15 11:34:21 +00:00
parent e90ded6c23
commit 54a4511247
5 changed files with 78 additions and 55 deletions

View File

@ -340,12 +340,13 @@ got_fd_activity (void *info)
static void
select_thread_start (void)
{
CFRunLoopSourceContext source_context = {0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, got_fd_activity };
g_return_if_fail (select_thread_state == BEFORE_START);
pipe (select_thread_wakeup_pipe);
fcntl (select_thread_wakeup_pipe[0], F_SETFL, O_NONBLOCK);
CFRunLoopSourceContext source_context = {0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, got_fd_activity };
select_main_thread_source = CFRunLoopSourceCreate (NULL, 0, &source_context);
CFRunLoopAddSource (main_thread_run_loop, select_main_thread_source, kCFRunLoopCommonModes);