Standalone programs should not use stddef.h. They are more like the

kernel, so they must use sys/systm.h instead.
This commit is contained in:
atatat 2004-04-09 15:43:19 +00:00
parent d010f57a21
commit f9eafc41bd
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mbuf.h,v 1.90 2004/03/22 17:56:30 matt Exp $ */
/* $NetBSD: mbuf.h,v 1.91 2004/04/09 15:43:19 atatat Exp $ */
/*-
* Copyright (c) 1996, 1997, 1999, 2001 The NetBSD Foundation, Inc.
@ -82,7 +82,7 @@
#include <sys/queue.h>
/* For offsetof() */
#ifdef _KERNEL
#if defined(_KERNEL) || defined(_STANDALONE)
#include <sys/systm.h>
#else
#include <stddef.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: sysctl.h,v 1.117 2004/04/08 03:57:48 atatat Exp $ */
/* $NetBSD: sysctl.h,v 1.118 2004/04/09 15:43:19 atatat Exp $ */
/*
* Copyright (c) 1989, 1993
@ -47,7 +47,7 @@
#include <uvm/uvm_extern.h>
/* For offsetof() */
#ifdef _KERNEL
#if defined(_KERNEL) || defined(_STANDALONE)
#include <sys/systm.h>
#else
#include <stddef.h>