Mercurial > mplayer.hg
comparison stream/cache2.c @ 31940:f1e3d7471ac8
Fix compilation with gcc 2.95.3 with some help by Reimar.
author | cehoyos |
---|---|
date | Thu, 26 Aug 2010 21:06:24 +0000 |
parents | 73f85fc599e0 |
children | 7459e0a25235 |
comparison
equal
deleted
inserted
replaced
31939:6ccc2a358030 | 31940:f1e3d7471ac8 |
---|---|
364 * Main loop of the cache process or thread. | 364 * Main loop of the cache process or thread. |
365 */ | 365 */ |
366 static void cache_mainloop(cache_vars_t *s) { | 366 static void cache_mainloop(cache_vars_t *s) { |
367 int sleep_count = 0; | 367 int sleep_count = 0; |
368 #if FORKED_CACHE | 368 #if FORKED_CACHE |
369 struct sigaction sa = { .sa_handler = SIG_IGN }; | 369 struct sigaction sa = { 0 }; |
370 sa.sa_handler = SIG_IGN; | |
370 sigaction(SIGUSR1, &sa, NULL); | 371 sigaction(SIGUSR1, &sa, NULL); |
371 #endif | 372 #endif |
372 do { | 373 do { |
373 if (!cache_fill(s)) { | 374 if (!cache_fill(s)) { |
374 #if FORKED_CACHE | 375 #if FORKED_CACHE |