Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/kdump Use proper forward declaration for kmutex_t. T...



details:   https://anonhg.NetBSD.org/src/rev/92aef61391ba
branches:  trunk
changeset: 319434:92aef61391ba
user:      martin <martin%NetBSD.org@localhost>
date:      Tue May 29 14:29:53 2018 +0000

description:
Use proper forward declaration for kmutex_t. This makes MKDTRACE=no builds
work again.

diffstat:

 usr.bin/kdump/mkioctls |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 9b704ba645b1 -r 92aef61391ba usr.bin/kdump/mkioctls
--- a/usr.bin/kdump/mkioctls    Tue May 29 13:10:28 2018 +0000
+++ b/usr.bin/kdump/mkioctls    Tue May 29 14:29:53 2018 +0000
@@ -1,5 +1,5 @@
 #!/bin/sh
-#      $NetBSD: mkioctls,v 1.49 2018/05/29 13:10:28 martin Exp $
+#      $NetBSD: mkioctls,v 1.50 2018/05/29 14:29:53 martin Exp $
 #
 # Copyright (c) 1994
 #      The Regents of the University of California.  All rights reserved.
@@ -49,7 +49,7 @@
 echo "typedef struct crap RF_AccTotals_t;" # XXX Raidframe lossage
 echo "struct rf_test_acc { int _xxx; };" # XXX Raidframe lossage
 echo "struct map_info { int _xxx[22]; };" # XXX Xorg lossage
-echo "typedef void *kmutex_t;" # XXX needed by ZFS headers
+echo "typedef struct kmutex kmutex_t;" # XXX needed by ZFS headers
 echo "#include <stdio.h>"
 echo "#include <sys/types.h>"
 echo "#include <sys/param.h>"



Home | Main Index | Thread Index | Old Index