Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libkvm Fix build problem by rearranging the order of "#i...
details: https://anonhg.NetBSD.org/src/rev/dfebec04c396
branches: trunk
changeset: 542564:dfebec04c396
user: tron <tron%NetBSD.org@localhost>
date: Sat Feb 01 17:22:44 2003 +0000
description:
Fix build problem by rearranging the order of "#include" statements so
that "sys/mallocvar.h" gets include while "_KERNEL" is defined.
diffstat:
lib/libkvm/kvm_file.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (35 lines):
diff -r ad1688778f0f -r dfebec04c396 lib/libkvm/kvm_file.c
--- a/lib/libkvm/kvm_file.c Sat Feb 01 17:13:14 2003 +0000
+++ b/lib/libkvm/kvm_file.c Sat Feb 01 17:22:44 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kvm_file.c,v 1.19 2003/01/18 10:40:41 thorpej Exp $ */
+/* $NetBSD: kvm_file.c,v 1.20 2003/02/01 17:22:44 tron Exp $ */
/*-
* Copyright (c) 1989, 1992, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)kvm_file.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: kvm_file.c,v 1.19 2003/01/18 10:40:41 thorpej Exp $");
+__RCSID("$NetBSD: kvm_file.c,v 1.20 2003/02/01 17:22:44 tron Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -50,13 +50,13 @@
*/
#include <sys/param.h>
+#define _KERNEL
+#include <sys/file.h>
+#undef _KERNEL
#include <sys/user.h>
#include <sys/lwp.h>
#include <sys/proc.h>
#include <sys/exec.h>
-#define _KERNEL
-#include <sys/file.h>
-#undef _KERNEL
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <sys/tty.h>
Home |
Main Index |
Thread Index |
Old Index