Module Name: src
Committed By: christos
Date: Thu May 3 21:37:29 UTC 2018
Modified Files:
src/sys/sys: mbuf.h
Log Message:
make mbuftypes always visible
To generate a diff of this commit:
cvs rdiff -u -r1.204 -r1.205 src/sys/sys/mbuf.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/mbuf.h
diff -u src/sys/sys/mbuf.h:1.204 src/sys/sys/mbuf.h:1.205
--- src/sys/sys/mbuf.h:1.204 Thu May 3 04:39:28 2018
+++ src/sys/sys/mbuf.h Thu May 3 17:37:29 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: mbuf.h,v 1.204 2018/05/03 08:39:28 maxv Exp $ */
+/* $NetBSD: mbuf.h,v 1.205 2018/05/03 21:37:29 christos Exp $ */
/*
* Copyright (c) 1996, 1997, 1999, 2001, 2007 The NetBSD Foundation, Inc.
@@ -397,7 +397,7 @@ MBUF_DEFINE(mbuf, MHLEN, MLEN);
#define MT_OOBDATA 7 /* expedited data */
#ifdef MBUFTYPES
-static const char * const mbuftypes[] = {
+const char * const mbuftypes[] = {
"mbfree",
"mbdata",
"mbheader",
@@ -407,6 +407,8 @@ static const char * const mbuftypes[] =
"mbcontrol",
"mboobdata",
};
+#else
+extern const char * const mbuftypes[];
#endif
/* flags to m_get/MGET */