summaryrefslogtreecommitdiff
path: root/libexec/identd
diff options
context:
space:
mode:
authortron <tron@NetBSD.org>2003-02-01 21:12:25 +0000
committertron <tron@NetBSD.org>2003-02-01 21:12:25 +0000
commitedb9087c05097bd29e3afc8da68cc77422a4cb71 (patch)
tree1386b78fc399538cde89a7ee3f2d801a6d5dd19d /libexec/identd
parent982065fbae9e87281e99508ac484bf5caa3c7542 (diff)
Include "sys/mallocvar.h" with "_KERNEL" defined in time to avoid
build failure because MALLOC_DECLARE() is not defined.
Diffstat (limited to 'libexec/identd')
-rw-r--r--libexec/identd/netbsd.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/libexec/identd/netbsd.c b/libexec/identd/netbsd.c
index c3c2b166e9c..49ddde216c1 100644
--- a/libexec/identd/netbsd.c
+++ b/libexec/identd/netbsd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd.c,v 1.13 2003/02/01 17:59:47 tron Exp $ */
+/* $NetBSD: netbsd.c,v 1.14 2003/02/01 21:12:25 tron Exp $ */
/*
** netbsd.c Low level kernel access functions for NetBSD
@@ -11,6 +11,11 @@
** Please send bug fixes/bug reports to: Peter Eriksson <pen@lysator.liu.se>
*/
+#include <sys/types.h>
+#define _KERNEL
+#include <sys/mallocvar.h>
+#undef _KERNEL
+
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
@@ -23,14 +28,6 @@
#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>
@@ -38,6 +35,11 @@
#include <sys/socketvar.h>
+#define _KERNEL
+
+#include <sys/file.h>
+
+#undef _KERNEL
#include <sys/sysctl.h>
#include <fcntl.h>