From d854fd8989a22819b4d9754857805416e6ed6706 Mon Sep 17 00:00:00 2001 From: reinoud Date: Sun, 27 Nov 2011 20:57:28 +0000 Subject: [PATCH] Fix in-code declaration of the sigaction structure. --- sys/arch/usermode/dev/ld_thunkbus.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sys/arch/usermode/dev/ld_thunkbus.c b/sys/arch/usermode/dev/ld_thunkbus.c index cac115738883..78ea9dce7786 100644 --- a/sys/arch/usermode/dev/ld_thunkbus.c +++ b/sys/arch/usermode/dev/ld_thunkbus.c @@ -1,4 +1,4 @@ -/* $NetBSD: ld_thunkbus.c,v 1.17 2011/11/27 20:08:23 reinoud Exp $ */ +/* $NetBSD: ld_thunkbus.c,v 1.18 2011/11/27 20:57:28 reinoud Exp $ */ /*- * Copyright (c) 2011 Jared D. McNeill @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ld_thunkbus.c,v 1.17 2011/11/27 20:08:23 reinoud Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ld_thunkbus.c,v 1.18 2011/11/27 20:57:28 reinoud Exp $"); #include #include @@ -95,6 +95,9 @@ ld_thunkbus_attach(device_t parent, device_t self, void *opaque) struct ld_thunkbus_softc *sc = device_private(self); struct ld_softc *ld = &sc->sc_ld; struct thunkbus_attach_args *taa = opaque; +#ifdef LD_USE_AIO + struct sigaction sa; +#endif const char *path = taa->u.diskimage.path; ssize_t size, blksize; @@ -126,8 +129,6 @@ ld_thunkbus_attach(device_t parent, device_t self, void *opaque) ld_thunkbus_complete, sc); #ifdef LD_USE_AIO - struct sigaction sa; - sa.sa_flags = SA_RESTART | SA_SIGINFO; sa.sa_sigaction = ld_thunkbus_sig; thunk_sigemptyset(&sa.sa_mask);