summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_shutdown.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2012-05-22 07:23:41 +0000
committerharti <harti@FreeBSD.org>2012-05-22 07:23:41 +0000
commitc7e30562ca4666f65f2c70644a4d5424759fd2f6 (patch)
tree1bd90fc47b35ee61323671657ec5ff25e475f746 /sys/kern/kern_shutdown.c
parent39fa59acb9f8e2454040a8772678e723665e8711 (diff)
downloadFreeBSD-src-c7e30562ca4666f65f2c70644a4d5424759fd2f6.zip
FreeBSD-src-c7e30562ca4666f65f2c70644a4d5424759fd2f6.tar.gz
Make dumptid non-static. It is used by libkvm to detect whether
this is a VNET-kernel or not. gcc used to put the static symbol into the symbol table, clang does not. This fixes the 'netstat: no namelist' error seen on clang+VNET systems.
Diffstat (limited to 'sys/kern/kern_shutdown.c')
-rw-r--r--sys/kern/kern_shutdown.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_shutdown.c b/sys/kern/kern_shutdown.c
index 9da342d..42923ff 100644
--- a/sys/kern/kern_shutdown.c
+++ b/sys/kern/kern_shutdown.c
@@ -151,7 +151,7 @@ static struct dumperinfo dumper; /* our selected dumper */
/* Context information for dump-debuggers. */
static struct pcb dumppcb; /* Registers. */
-static lwpid_t dumptid; /* Thread ID. */
+lwpid_t dumptid; /* Thread ID. */
static void poweroff_wait(void *, int);
static void shutdown_halt(void *junk, int howto);
OpenPOWER on IntegriCloud