Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/pgoyette-compat]: src/sys Better to add these required headers closer to...
details: https://anonhg.NetBSD.org/src/rev/0d0b16c800da
branches: pgoyette-compat
changeset: 320963:0d0b16c800da
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Tue Mar 06 23:31:29 2018 +0000
description:
Better to add these required headers closer to where they're needed
diffstat:
sys/compat/common/if_40.h | 6 +++++-
sys/net/if.h | 5 +----
2 files changed, 6 insertions(+), 5 deletions(-)
diffs (41 lines):
diff -r d40a2ef396a6 -r 0d0b16c800da sys/compat/common/if_40.h
--- a/sys/compat/common/if_40.h Tue Mar 06 23:27:52 2018 +0000
+++ b/sys/compat/common/if_40.h Tue Mar 06 23:31:29 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_40.h,v 1.1.2.1 2018/03/06 23:17:42 pgoyette Exp $ */
+/* $NetBSD: if_40.h,v 1.1.2.2 2018/03/06 23:31:29 pgoyette Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -33,6 +33,10 @@
#define _COMPAT_IF_40_H_
#if defined(COMPAT_40)
+
+#include <net/if.h>
+#include <compat/sys/sockio.h>
+
extern u_long (*vec_compat_cvtcmd)(u_long);
extern int (*vec_compat_ifioctl)(struct socket *, u_long, u_long,
void *, struct lwp *);
diff -r d40a2ef396a6 -r 0d0b16c800da sys/net/if.h
--- a/sys/net/if.h Tue Mar 06 23:27:52 2018 +0000
+++ b/sys/net/if.h Tue Mar 06 23:31:29 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if.h,v 1.258.2.3 2018/03/06 23:27:52 pgoyette Exp $ */
+/* $NetBSD: if.h,v 1.258.2.4 2018/03/06 23:31:29 pgoyette Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -88,11 +88,8 @@
#include <sys/pslist.h>
#include <sys/pserialize.h>
#include <sys/psref.h>
-#include <net/if.h>
#endif
-#include <compat/sys/sockio.h>
-
/*
* Always include ALTQ glue here -- we use the ALTQ interface queue
* structure even when ALTQ is not configured into the kernel so that
Home |
Main Index |
Thread Index |
Old Index