summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/vinum/vinumparser.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/sys/dev/vinum/vinumparser.c b/sys/dev/vinum/vinumparser.c
index 59d9aba..f876321 100644
--- a/sys/dev/vinum/vinumparser.c
+++ b/sys/dev/vinum/vinumparser.c
@@ -58,23 +58,25 @@
*/
#include <sys/param.h>
+#include <dev/vinum/vinumkw.h>
#ifdef _KERNEL
-#include <sys/conf.h>
#include <sys/systm.h>
+#include <sys/conf.h>
#include <machine/setjmp.h>
-#else
-#include <ctype.h>
-#endif
+/* All this mess for a single struct definition */
+#include <sys/uio.h>
+#include <sys/namei.h>
#include <sys/disklabel.h>
+#include <sys/mount.h>
#include <dev/vinum/vinumvar.h>
-#include <dev/vinum/vinumkw.h>
#include <dev/vinum/vinumio.h>
#include <dev/vinum/vinumext.h>
-
-#ifdef _KERNEL
#define iswhite(c) ((c == ' ') || (c == '\t')) /* check for white space */
-#else /* get it from the headers */
+#else /* userland */
+#include <ctype.h>
+#include <errno.h>
+#include <fcntl.h>
#define iswhite isspace /* use the ctype macro */
#endif
OpenPOWER on IntegriCloud