Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern define COMPAT_OLDSOCK unconditionally - the code is...
details: https://anonhg.NetBSD.org/src/rev/713e6897bc88
branches: trunk
changeset: 499619:713e6897bc88
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Fri Nov 24 21:38:28 2000 +0000
description:
define COMPAT_OLDSOCK unconditionally - the code is used virtually for all
emulations besides NetBSD, and this way it's LKM-safe
diffstat:
sys/kern/uipc_syscalls.c | 19 +++++++------------
1 files changed, 7 insertions(+), 12 deletions(-)
diffs (34 lines):
diff -r 930f496945ac -r 713e6897bc88 sys/kern/uipc_syscalls.c
--- a/sys/kern/uipc_syscalls.c Fri Nov 24 20:34:01 2000 +0000
+++ b/sys/kern/uipc_syscalls.c Fri Nov 24 21:38:28 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_syscalls.c,v 1.54 2000/08/02 20:56:52 thorpej Exp $ */
+/* $NetBSD: uipc_syscalls.c,v 1.55 2000/11/24 21:38:28 jdolecek Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1990, 1993
@@ -36,18 +36,13 @@
*/
#include "opt_ktrace.h"
-#include "opt_compat_freebsd.h"
-#include "opt_compat_linux.h"
-#include "opt_compat_sunos.h"
-#include "opt_compat_hpux.h"
-#include "opt_compat_ultrix.h"
-#include "opt_compat_43.h"
-#include "opt_compat_osf1.h"
-#if defined(COMPAT_43) || defined(COMPAT_SUNOS) || defined(COMPAT_LINUX) || \
- defined(COMPAT_HPUX) || defined(COMPAT_FREEBSD) || \
- defined(COMPAT_ULTRIX) || defined(COMPAT_OSF1)
+
+/*
+ * Though COMPAT_OLDSOCK is needed only for COMPAT_43, SunOS, Linux,
+ * HP-UX, FreeBSD, Ultrix, OSF1, we define it unconditionally so that
+ * this would be LKM-safe.
+ */
#define COMPAT_OLDSOCK /* used by <sys/socket.h> */
-#endif
#include <sys/param.h>
#include <sys/systm.h>
Home |
Main Index |
Thread Index |
Old Index