Include needed #include for regression tests.

Sponsored by: DARPA & NAI Labs.
This commit is contained in:
Poul-Henning Kamp 2002-05-19 18:59:39 +00:00
parent 425b005dba
commit faefe44cff

View File

@ -42,6 +42,7 @@
#include <unistd.h> #include <unistd.h>
#include <stdlib.h> #include <stdlib.h>
#include <signal.h> #include <signal.h>
#include <string.h>
#include <err.h> #include <err.h>
#else #else
#include <sys/systm.h> #include <sys/systm.h>
@ -301,10 +302,8 @@ g_slice_orphan(struct g_consumer *cp)
gp = cp->geom; gp = cp->geom;
gp->flags |= G_GEOM_WITHER; gp->flags |= G_GEOM_WITHER;
/* First prevent any new requests */
error = cp->provider->error; error = cp->provider->error;
LIST_FOREACH(pp, &gp->provider, provider) LIST_FOREACH(pp, &gp->provider, provider)
g_orphan_provider(pp, error); g_orphan_provider(pp, error);
return; return;
} }