Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys make mbuftypes always visible



details:   https://anonhg.NetBSD.org/src/rev/3e88f3d2922d
branches:  trunk
changeset: 832227:3e88f3d2922d
user:      christos <christos%NetBSD.org@localhost>
date:      Thu May 03 21:37:29 2018 +0000

description:
make mbuftypes always visible

diffstat:

 sys/sys/mbuf.h |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 845ff0c6b730 -r 3e88f3d2922d sys/sys/mbuf.h
--- a/sys/sys/mbuf.h    Thu May 03 20:15:49 2018 +0000
+++ b/sys/sys/mbuf.h    Thu May 03 21:37:29 2018 +0000
@@ -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 @@
 #define MT_OOBDATA     7       /* expedited data  */
 
 #ifdef MBUFTYPES
-static const char * const mbuftypes[] = {
+const char * const mbuftypes[] = {
        "mbfree",
        "mbdata",
        "mbheader",
@@ -407,6 +407,8 @@
        "mbcontrol",
        "mboobdata",
 };
+#else
+extern const char * const mbuftypes[];
 #endif
 
 /* flags to m_get/MGET */



Home | Main Index | Thread Index | Old Index