diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-02-13 05:09:34 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-02-13 05:09:34 +0000 |
commit | f253465cb582390ddb853f36cefd01062b7ffb3f (patch) | |
tree | 284369f804febc77907f2c177f1a1d51163ca94a /sys/netinet/ip_fil_compat.h | |
parent | 25d0adf66104abc4f0e65121d4b36e44ac291747 (diff) |
make SPLNET() do splsoftnet()
Diffstat (limited to 'sys/netinet/ip_fil_compat.h')
-rw-r--r-- | sys/netinet/ip_fil_compat.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/netinet/ip_fil_compat.h b/sys/netinet/ip_fil_compat.h index 0440b5d887c..6a9b68e5a46 100644 --- a/sys/netinet/ip_fil_compat.h +++ b/sys/netinet/ip_fil_compat.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_fil_compat.h,v 1.3 1997/02/11 22:23:18 kstailey Exp $ */ +/* $OpenBSD: ip_fil_compat.h,v 1.4 1997/02/13 05:09:33 kstailey Exp $ */ /* * (C)opyright 1993, 1994, 1995 by Darren Reed. * @@ -89,7 +89,6 @@ #define IPOPT_EIP 145 /* EIP */ #define IPOPT_FINN 205 /* FINN */ - /* * Build some macros and #defines to enable the same code to compile anywhere * Well, that's the idea, anyway :-) @@ -189,11 +188,15 @@ extern vm_map_t kmem_map; # define UIOMOVE(a,b,c,d) uiomove(a,b,d) # define SLEEP(id, n) tsleep((id), PPAUSE|PCATCH, n, 0) # endif /* BSD */ -# if defined(NetBSD1_0) && (NetBSD1_0 > 1) +# if (defined(NetBSD1_0) && (NetBSD1_0 > 1)) # define SPLNET(x) x = splsoftnet() # else # if !SOLARIS -# define SPLNET(x) x = splnet() +# ifdef __OpenBSD__ +# define SPLNET(x) x = splsoftnet() +# else +# define SPLNET(x) x = splnet() +# endif /* __OpenBSD__ */ # define SPLX(x) (void) splx(x) # endif # endif |