From 077337039df994adca2158e3300b1eac89147b0f Mon Sep 17 00:00:00 2001 From: darrenr Date: Wed, 31 Mar 2004 11:41:45 +0000 Subject: [PATCH] COPYIN/COPYOUT macros need to call copyin/out on NetBSD rather than just use bcopy. --- sys/netinet/ip_compat.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/netinet/ip_compat.h b/sys/netinet/ip_compat.h index 108f94e9f3d9..c0760ec8a74b 100644 --- a/sys/netinet/ip_compat.h +++ b/sys/netinet/ip_compat.h @@ -1,4 +1,4 @@ -/* $NetBSD: ip_compat.h,v 1.35 2004/03/28 09:00:56 martti Exp $ */ +/* $NetBSD: ip_compat.h,v 1.36 2004/03/31 11:41:45 darrenr Exp $ */ /* * Copyright (C) 1993-2001, 2003 by Darren Reed. @@ -748,6 +748,10 @@ typedef int minor_t; typedef u_int32_t u_32_t; # define U_32_T 1 +# define COPYIN(a,b,c) copyin((caddr_t)(a), (caddr_t)(b), (c)) +# define COPYOUT(a,b,c) copyout((caddr_t)(a), (caddr_t)(b), (c)) +# define BCOPYIN(a,b,c) bcopy((caddr_t)(a), (caddr_t)(b), (c)) +# define BCOPYOUT(a,b,c) bcopy((caddr_t)(a), (caddr_t)(b), (c)) # define OS_RECOGNISED 1 #endif /* __NetBSD__ */