From 44dcfee5eaf0b254b58f107e95446cda54e6696c Mon Sep 17 00:00:00 2001 From: thorpej Date: Fri, 22 Mar 1996 06:51:04 +0000 Subject: [PATCH] Move an #ifdef FIFO so this compiles on a SPARC (-Wall) if FIFO is not defined. --- sys/kern/vfs_syscalls.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 0ce847a26c83..f86d17d6b1c6 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_syscalls.c,v 1.69 1996/03/18 23:06:08 fvdl Exp $ */ +/* $NetBSD: vfs_syscalls.c,v 1.70 1996/03/22 06:51:04 thorpej Exp $ */ /* * Copyright (c) 1989, 1993 @@ -892,6 +892,9 @@ sys_mkfifo(p, v, retval) void *v; register_t *retval; { +#ifndef FIFO + return (EOPNOTSUPP); +#else register struct sys_mkfifo_args /* { syscallarg(char *) path; syscallarg(int) mode; @@ -900,9 +903,6 @@ sys_mkfifo(p, v, retval) int error; struct nameidata nd; -#ifndef FIFO - return (EOPNOTSUPP); -#else NDINIT(&nd, CREATE, LOCKPARENT, UIO_USERSPACE, SCARG(uap, path), p); if ((error = namei(&nd)) != 0) return (error);