Don't declare MSG_COMPAT in two places.

More prototype fixes
This commit is contained in:
christos 1996-02-10 00:12:44 +00:00
parent 30c34c327f
commit 647dfa216e
2 changed files with 9 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: tty_43.c,v 1.1 1996/02/02 18:47:57 christos Exp $ */
/* $NetBSD: tty_43.c,v 1.2 1996/02/10 00:12:44 christos Exp $ */
/*-
* Copyright (c) 1982, 1986, 1991, 1993
@ -48,6 +48,7 @@
#include <sys/conf.h>
#include <sys/kernel.h>
#include <sys/syslog.h>
#include <sys/ioctl_compat.h>
int ttydebug = 0;

View File

@ -1,4 +1,4 @@
/* $NetBSD: uipc_syscalls_43.c,v 1.3 1995/10/07 06:26:30 mycroft Exp $ */
/* $NetBSD: uipc_syscalls_43.c,v 1.4 1996/02/10 00:12:46 christos Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1990, 1993
@ -54,8 +54,6 @@
#include <sys/mount.h>
#include <sys/syscallargs.h>
#define MSG_COMPAT 0x8000 /* XXX */
int
compat_43_sys_accept(p, v, retval)
struct proc *p;
@ -173,6 +171,7 @@ compat_43_sys_recv(p, v, retval)
}
#ifdef MSG_COMPAT
int
compat_43_sys_recvfrom(p, v, retval)
struct proc *p;
@ -191,8 +190,10 @@ compat_43_sys_recvfrom(p, v, retval)
SCARG(uap, flags) |= MSG_COMPAT;
return (sys_recvfrom(p, uap, retval));
}
#endif
#ifdef MSG_COMPAT
/*
* Old recvmsg. This code takes advantage of the fact that the old msghdr
* overlays the new one, missing only the flags, and with the (old) access
@ -240,6 +241,7 @@ done:
FREE(iov, M_IOV);
return (error);
}
#endif
int
compat_43_sys_send(p, v, retval)
@ -267,6 +269,7 @@ compat_43_sys_send(p, v, retval)
return (sendit(p, SCARG(uap, s), &msg, SCARG(uap, flags), retval));
}
#ifdef MSG_COMPAT
int
compat_43_sys_sendmsg(p, v, retval)
struct proc *p;
@ -304,3 +307,4 @@ done:
FREE(iov, M_IOV);
return (error);
}
#endif