Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/identd Fix build problem by rearranging the order of...



details:   https://anonhg.NetBSD.org/src/rev/dae331685ed4
branches:  trunk
changeset: 542565:dae331685ed4
user:      tron <tron%NetBSD.org@localhost>
date:      Sat Feb 01 17:59:47 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:

 libexec/identd/netbsd.c |  14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diffs (35 lines):

diff -r dfebec04c396 -r dae331685ed4 libexec/identd/netbsd.c
--- a/libexec/identd/netbsd.c   Sat Feb 01 17:22:44 2003 +0000
+++ b/libexec/identd/netbsd.c   Sat Feb 01 17:59:47 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netbsd.c,v 1.12 1998/07/15 07:31:57 msaitoh Exp $      */
+/*     $NetBSD: netbsd.c,v 1.13 2003/02/01 17:59:47 tron Exp $ */
 
 /*
 ** netbsd.c            Low level kernel access functions for NetBSD
@@ -24,6 +24,13 @@
 #include "kvm.h"
 
 #include <sys/types.h>
+
+#define _KERNEL
+
+#include <sys/file.h>
+
+#undef _KERNEL
+
 #include <sys/stat.h>
 #include <sys/param.h>
 #include <sys/ioctl.h>
@@ -31,11 +38,6 @@
 
 #include <sys/socketvar.h>
 
-#define _KERNEL
-
-#include <sys/file.h>
-
-#undef _KERNEL
 #include <sys/sysctl.h>
 
 #include <fcntl.h>



Home | Main Index | Thread Index | Old Index