Author: cehoyos Date: Thu Aug 26 23:06:24 2010 New Revision: 32021 Log: Fix compilation with gcc 2.95.3 with some help by Reimar. Modified: trunk/stream/cache2.c Modified: trunk/stream/cache2.c ============================================================================== --- trunk/stream/cache2.c Thu Aug 26 21:24:18 2010 (r32020) +++ trunk/stream/cache2.c Thu Aug 26 23:06:24 2010 (r32021) @@ -366,7 +366,8 @@ static void dummy_sighandler(int x) { static void cache_mainloop(cache_vars_t *s) { int sleep_count = 0; #if FORKED_CACHE - struct sigaction sa = { .sa_handler = SIG_IGN }; + struct sigaction sa = { 0 }; + sa.sa_handler = SIG_IGN; sigaction(SIGUSR1, &sa, NULL); #endif do {
On Thu, 26 Aug 2010 23:06:24 +0200 (CEST), cehoyos wrote:
- struct sigaction sa = { .sa_handler = SIG_IGN }; + struct sigaction sa = { 0 }; + sa.sa_handler = SIG_IGN;
so are the {} needed anymore? -compn
participants (2)
-
cehoyos -
compn