]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
dcfd.c:
authorFrank Kardel <kardel@ntp.org>
Sun, 15 Oct 2006 14:25:15 +0000 (14:25 +0000)
committerFrank Kardel <kardel@ntp.org>
Sun, 15 Oct 2006 14:25:15 +0000 (14:25 +0000)
  cope with cases where sa_sigaction and sa_handler are in a union

bk: 453244cbfXeqVCBYZyyxJGmHbK7rQw

parseutil/dcfd.c

index 549c82893a91453c1a11f9986b4a7944d2b7b5a7..c87ab357e0d31e30558de5bf4895cfbf85623b3f 100644 (file)
@@ -1608,10 +1608,10 @@ main(
                {
                        struct sigaction act;
 
-                       act.sa_handler   = tick;
 # ifdef HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION
                        act.sa_sigaction = (void (*) P((int, siginfo_t *, void *)))0;
 # endif /* HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION */
+                       act.sa_handler   = tick;
                        sigemptyset(&act.sa_mask);
                        act.sa_flags     = 0;