Explicitly include <sys/device.h>, which we need for `struct device'.

This allows us to compile on !i386.  (On i386, <machine/cpu.h> pulled
in <sys/device.h> for us, thus hiding the compilation problem.)

OK by rpaulo@.
This commit is contained in:
jdc 2006-12-06 21:42:38 +00:00
parent d80f248433
commit 6d7a98c7bc
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ip_etherip.c,v 1.1 2006/11/23 04:07:07 rpaulo Exp $ */
/* $NetBSD: ip_etherip.c,v 1.2 2006/12/06 21:42:38 jdc Exp $ */
/*
* Copyright (c) 2006, Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
@ -66,6 +66,7 @@
#include <sys/socket.h>
#include <sys/sockio.h>
#include <sys/mbuf.h>
#include <sys/device.h>
#include <sys/errno.h>
#include <sys/ioctl.h>
#include <sys/syslog.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: ip6_etherip.c,v 1.1 2006/11/23 04:07:07 rpaulo Exp $ */
/* $NetBSD: ip6_etherip.c,v 1.2 2006/12/06 21:42:38 jdc Exp $ */
/*
* Copyright (c) 2006, Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
@ -66,6 +66,7 @@
#include <sys/socket.h>
#include <sys/sockio.h>
#include <sys/mbuf.h>
#include <sys/device.h>
#include <sys/errno.h>
#include <sys/ioctl.h>
#include <sys/syslog.h>